in reply to Reformating pathname
To make it a one-liner - providing your source file names are in the file source.dat
perl -pi.bak -e 's/input01/output61/' source.dat
This assumes that the file names in source.dat are stored
one per line. And a backupfile source.dat.bak is created with the original version of source.dat
-- Hofmator
|
|---|