Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: inline file modification

by Codon (Friar)
on Sep 07, 2005 at 16:37 UTC ( [id://489924]=note: print w/replies, xml ) Need Help??


in reply to inline file modification

Is this something that needs to happen within a greater context, or is this something that can be simply done with
# untested substitution perl -pi -e 's/^.+idTag.+$/new data here/' file.txt

Ivan Heffner
Sr. Software Engineer, DAS Lead
WhitePages.com, Inc.

Replies are listed 'Best First'.
Re^2: inline file modification
by Woodchuck (Initiate) on Sep 07, 2005 at 16:45 UTC
    first option

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2025-07-07 22:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.