Cool command! You could remove the head bit though with awk.
awk 'condition { command }'
By default the condition is NUL, which matches every line (so the command is run on every line). You have access to different variable (in both the condition and the command I think), one of them being NR for the line number.
So, if you set the condition to NR!=1, it'll run on every line different than 1 (which is the first one).
Cool command! You could remove the head bit though with awk.
By default the condition is NUL, which matches every line (so the command is run on every line). You have access to different variable (in both the condition and the command I think), one of them being
NR
for the line number.So, if you set the condition to
NR!=1
, it'll run on every line different than 1 (which is the first one).So, your command can be shortened from:
to
:smile:
I learned a bunch otherwise, so thanks!
Thanks for the improvements!