[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] GRRRRRR .... Regular expressions .....



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