How do I remove the first line in Unix?

Trung Minh

New member
How do I remove the first line in Unix?
Answer
Using
the sed Command
Removing the first line from an input file using the sed command is pretty straightforward. The sed command in the example above isn’t hard to understand. The parameter ‘1d’ tells the sed command to apply the ‘d’ (delete) action on line number ‘1’.
 

Tìm kiếm

Back
Top