http://qs321.pair.com?node_id=6987


in reply to Deleting the first line of a file

Just to throw out another way to do it, you could try something along the lines of
perl -ni -e 'if (2 .. eof) { print }' <file>
Not too different from brott's example, but it's always interesting to see different ways to do the same thing.

Replies are listed 'Best First'.
RE: Re: Deleting the first line of a file
by jbert (Priest) on Apr 06, 2000 at 16:06 UTC
    And to ice the cake...
    perl -pi -e 'BEGIN{<>}' files you want to munge