Skip to main content
Changed title to better reflect the question (implication of "delete everything" is somewhat different)
Link

How to delete everythingthe rest of each line after a certain pattern or a string in a file?

edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 266
tag correction
Link
Pandya
  • 25.8k
  • 31
  • 99
  • 147
Improved formatting
Source Link
heemayl
  • 58.1k
  • 9
  • 129
  • 144
Loading
Source Link
Koshur
  • 1.4k
  • 5
  • 22
  • 36
Loading