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

Re: truncate a file from top

by perlcapt (Pilgrim)
on Nov 02, 2004 at 18:00 UTC ( #404694=note: print w/replies, xml ) Need Help??


in reply to truncate a file from top

There is a handy module that will help: File::ReadBackwards. Just read as many lines as you want starting at the end of the file. It's a great time-saver when trying to find the last record/line/block/etc. in a really large file.
perlcapt
-ben

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://404694]
help
Chatterbox?
[Happy-the-monk]: Stayin' Alive

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2017-11-18 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?