How do I remove a specific line from a file in Unix?

How do I remove a specific line from a file in Unix?
Answer
Unix Sed Command to Delete Lines in File – 15 Examples
  1. Sed Command to Delete Lines: Sed command can be used to delete or remove specific lines which matches a given pattern or in a particular position in a file. …
  2. Delete first line or header line. …
  3. Delete last line or footer line or trailer line. …
  4. Delete particular line. …
  5. Delete range of lines.
7 мар. 2013 г.
 

Tìm kiếm

Back
Top