Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: deleting first line of a file using in-place editing

by greenFox (Vicar)
on Sep 08, 2005 at 06:41 UTC ( #490117=note: print w/ replies, xml ) Need Help??


in reply to deleting first line of a file using in-place editing

In the spirit of TIMTOWTDI...

perl -ni -e "print unless $. == 1" test.txt

--
Murray Barton
Do not seek to follow in the footsteps of the wise. Seek what they sought. -Basho


Comment on Re: deleting first line of a file using in-place editing
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://490117]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-07-05 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls