Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: removing lines that are in the end of a file

by pvaldes (Chaplain)
on Apr 05, 2013 at 20:25 UTC ( #1027215=note: print w/replies, xml ) Need Help??


in reply to removing lines that are in the end of a file

Slurp the entire file and substitute \n.*?$

UPDATED: ok, i see, this is a different question than "remove the last line of the file".

Slurp the entire file and print $OUTFILE ^.*?125\sSIL

  • Comment on Re: removing lines that are in the end of a file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027215]
help
Chatterbox?
[Corion]: Cool. Google makes it easier for me to wean myself off Google Keep. The app now insists on saving items online before displaying them in the offline view.
[Corion]: I should maybe set up a "public" instance of my clone just to manage feature suggestions ;)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-04-25 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (450 votes). Check out past polls.