How to change recursively through the lost

From: Suhas BHIDE (suhas@ctl.creative.com)
Date: Wed Jun 12 2002 - 02:28:34 EDT


Hello All Administrators....

I want to change some parameters in a list of files. I created one file
which contains a list of all these files
in which I need to change the parameter. I am not able to find out how to
pass this file as a parameter to
the perl script I am using.

e.g. my filename is "nfiles" which looks something like:

./pcwwappl/admin/applcust.txt
./pcwwappl/admin/applora.txt
./pcwwappl/admin/adconfig.txt
./pcwwappl/admin/topfile.txt
./pcwwcomn/portal/aplogon.html
./pcwwcomn/html/US/ICXINDEX.htm

Now I need to change some parameters in each of these files using perl.

find /foo -type f | xargs perl -pi -e 's/host1/host2/g'

Pls. help.

Thanks...Suhas Bhide
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:27 EDT