Peamasii has asked for the wisdom of the Perl Monks concerning the following question:
However the text I need to replace is:perl -i.bak -p -e’s/old/new/g’ *.sh
with this:mail xmlfeedback -s "feed invalid for agent 1027"
where the agent # is different in every file. How can I write the regex to locate and switch the order of the words as required above? thanks in advancemail -s "feed invalid for agent 1027" xmlfeedback
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: search and replace
by choroba (Cardinal) on Sep 28, 2012 at 08:06 UTC | |
|
Re: search and replace
by johngg (Canon) on Sep 28, 2012 at 08:10 UTC | |
by Peamasii (Sexton) on Oct 04, 2012 at 10:38 UTC | |
|
Re: search and replace
by Anonymous Monk on Sep 28, 2012 at 08:12 UTC | |
by Anonymous Monk on Sep 28, 2012 at 08:15 UTC |