thesundayman has asked for the wisdom of the Perl Monks concerning the following question:
dir /b/S *.dsp | perl -pe"s#\bGPP\b#Arjun#i;" -i.bak
However, this operates on file names instead of working on the file content since the filter supplies the output of the previous command as STDIN to the perl command. Any ideas on how to make it operate on files?
thanks,
Saurabh
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: command lineIn place edit with a filter
by merlyn (Sage) on Apr 04, 2003 at 17:15 UTC | |
|
Re: command lineIn place edit with a filter
by broquaint (Abbot) on Apr 04, 2003 at 16:06 UTC | |
|
Re: command lineIn place edit with a filter
by jasonk (Parson) on Apr 04, 2003 at 15:37 UTC | |
by thesundayman (Novice) on Apr 04, 2003 at 15:40 UTC | |
by Jenda (Abbot) on Apr 04, 2003 at 17:53 UTC | |
|
Re: command lineIn place edit with a filter
by thesundayman (Novice) on Apr 04, 2003 at 15:37 UTC | |
by jsprat (Curate) on Apr 04, 2003 at 18:52 UTC | |
|
Re: command lineIn place edit with a filter
by PodMaster (Abbot) on Apr 04, 2003 at 16:29 UTC | |
|
Re: command lineIn place edit with a filter
by graff (Chancellor) on Apr 05, 2003 at 02:35 UTC |