Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Substitution in a file

by fundflow (Chaplain)
on Jan 11, 2001 at 22:04 UTC ( [id://51173]=note: print w/replies, xml ) Need Help??


in reply to Substitution in a file

You can do the following:
perl -i.orig -pe 's/total_bytes/""/ig' myfile.txt
To change the file and back up the old one with .orig extension.

Cheers.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found