Latest Posts
Tags
awk awk -F awk examples background run script bash awk command grep linux curl disk space docker commands docker usage du find and grep Google Analytics grep -v grep examples java java example linux awk linux command linux find linux grep linux ls ls -al ls -lrt ls examples ls sort ls sort by size mkdir mv examples mysql mysql column to row mysql example rm rmdir sed sed examples sed tutorial seo Shell tutorial top vim vim examples vim tutorial w wordpress
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 awk examples, remove line, sed examples, tail examples
Comments Off on How to remove the first line of a text file using the linux command line?