tags:

views:

259

answers:

3

i need to redirect all of the stdout of a program except the first line into a file.

Is there a common unix program that removes lines from stdin and spits the rest out to stdout?

+3  A: 

tail -n +2 -f -

tvanfosson
A: 

sed -e 1d < input > output

jwa
+4  A: 

Others have already mentioned "tail". sed will also work:

sed 1d

As will Awk:

awk 'NR > 1'
Glomek