Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: line number ($.) problem ?

by bsdz (Friar)
on Mar 27, 2007 at 17:17 UTC ( [id://606805]=note: print w/replies, xml ) Need Help??


in reply to line number ($.) problem ?

There is always more than one way to do it. Not sure how well 'tail' works with large files though: -
$ cat my.log 2005 2005 2005 2006 2006 2006 2007 2007 2007 2007 $ ls -l my.log -rw-r--r-- 1 bsdz mygroup 50 Mar 27 18:00 my.log $ grep -bm 1 2007 my.log 30:2007 $ tail -c $((50-30)) my.log 2007 2007 2007 2007

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-20 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found