Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Reading a file from any arbitrary place in the file.

by davidrw (Prior)
on Nov 21, 2005 at 19:36 UTC ( [id://510540]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -ne 'if($ok){print;}else{$ok=/^This is the temp line\.$/}' foo.tx
    +t
    
  2. or download this
    perl -n0777e 'print ((split(/^This is the temp line.\n/m, $_, 2))[-1])
    +' foo.txt
    

Log In?
Username:
Password:

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

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

    No recent polls found