Front page | perl.beginners |
Postings from February 2002
Re: In-line editing..
Thread Previous
|
Thread Next
From:
Jon Molin
Date:
February 7, 2002 00:45
Subject:
Re: In-line editing..
Message ID:
3C623D88.CBE15A51@resfeber.se
"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?
/Jon
Thread Previous
|
Thread Next