Tag Archives: remove line

How to remove the first line of a text file using the linux command line?

remove the first line: use awk NR variable, awk ‘{if(NR>1){print $0}}’ file ; use sed action option d, sed ‘1d’ file; use tail n option, tail -n +2 file Continue reading

Posted in Text Processing, Awk Command, How to, Sed Command | Tagged , , , | Comments Off on How to remove the first line of a text file using the linux command line?