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

Re^4: How to get a value from a file and save in another file

by ikegami (Patriarch)
on Apr 27, 2005 at 20:12 UTC ( [id://452129]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to get a value from a file and save in another file
in thread How to get a value from a file and save in another file

Shorter:
perl -nle '/^\d/ .. /(LA.*)/ && print $1' datafile

Safer:
perl -nle '/^\d/ .. /^\d*\s+(LA.*)/ && print $1' datafile

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-03-29 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found