develooper Front page | perl.beginners | Postings from February 2002

Re: In-line editing..

Thread Previous | Thread Next
Jon Molin
February 7, 2002 00:45
Re: In-line editing..
Message ID:
"Steven M. Klass" wrote:
> Hi all,
>         Here is the general problem.  I have a file that I need to edit but can't.

im not sure i follow you here, making a backup copy is not an option?

perl -pi.bak -e 's/foo/bar/g' weird_uneditable_file;some_app
weird_uneditable_file;mv weird_uneditable_file.bak weird_uneditable_file

would that 'line' not work for you?


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About