How do you remove the first N line in Unix?

How do you remove the first N line in Unix?
Answer
Remove first N lines of a file in place in unix command line
  1. Both sed -i and gawk v4.1 -i -inplace options are basically creating temp file behind the scenes. IMO sed should be the faster than tail and awk . – …
  2. tail is multiple times faster for this task, than sed or awk . (
 

Tìm kiếm

Back
Top