Awk: Remove first line of file

 

Short and sweet – when piping data through awk, how do we remove the first line of the input?

 

awk ‘{if (NR!=1) {print}}’

 

e.g.

 

cat FILENAME.txt | awk ‘{if (NR!=1) {print}}’

 

Done!


Posted

in

,

by

Tags: