[ale] GRRRRRR .... Regular expressions .....
Mazukna, Tomas
Tomas.Mazukna at delta.com
Wed Mar 10 10:09:43 EST 2004
HI,
I am trying to rename gazillions of files in huge directory tree ....
Found an example ....
ls -d *.php3 | sed 's/\(.*\).php3$/mv "&" "\1.php"/' | sh
I am trying to adapt it to my needs .....
ls -d * | sed 's/t1-/mv & dsl-/g' | sh
Only one small problem .... I get this
mv t1- dsl-somefile
How to get what sed got into input - full file name ?
Thanks,
Tomas
More information about the Ale
mailing list