Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Manipulating Output

by hiseldl (Priest)
on Jul 09, 2002 at 15:16 UTC ( [id://180504]=note: print w/replies, xml ) Need Help??


in reply to Manipulating Output

if the data file exists and you want to keep the same filename (this will keep the original with .bak suffix):
> perl -pi.bak -e "s/^.*://" data.txt
or if you would like to create a new file to hold the output:
> perl -pe "s/^.*://" data.txt > output.txt
--
.dave.

Log In?
Username:
Password:

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

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

    No recent polls found