Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Deleting first and last lines of a text file

by AppleFritter (Vicar)
on May 16, 2014 at 10:57 UTC ( [id://1086288]=note: print w/replies, xml ) Need Help??


in reply to Re: Deleting first and last lines of a text file
in thread Deleting first and last TWO(2) lines of a text file

That'll not just delete the first and the last line, but also any line that happens to be the same. I.e., it'll turn this:

the quick brown fox jumps over the lazy dog's back

into this:

quick brown fox jumps over lazy dog's

rather than this:

quick brown fox jumps over the lazy dog's

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-26 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found