How to delete the rest of each line after a certain pattern or a string in a file? Published by sarayut@beenplus.com on December 21, 2020