Alex Rivera | Logout

Removing first line from stdin and redirect to stdout

Asked 2008-10-28T00:46:53.427
13

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?

Edit
Report

1 Answer

27

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

sed 1d

As will Awk:

awk 'NR > 1'
answered 2008-10-28T00:51:16.773

Your Answer