umasuresh has asked for the wisdom of the Perl Monks concerning the following question:
UPDATE Got it, thanks! By default, this command preserves the timestamp!perl -e 's/old/new/g;' -pi.bak somefile
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Preserving timestamp with -i switch
by AR (Friar) on Sep 19, 2011 at 19:29 UTC | |
|
Re: Preserving timestamp with -i switch
by duyet (Friar) on Sep 20, 2011 at 06:07 UTC |