[ale] need a simple script

Fletch fletch at phydeaux.org
Wed Jan 23 10:29:03 EST 2002


>>>>> "Thomas" == Thomas Mazukna <Mazukna> writes:

    Thomas> Morning scripting gurus, need a script that takes in a
    Thomas> file which is list of files and does a global string
    Thomas> replace in each file.

xargs perl -i -pe 's{foo}{bar}g' < filenames

-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
770 933-0600 x211(w)  |  scary questions." -- Jules                =(___)=
                      |                                               U

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list