Is possible to rename and substitute on fly with bash?for example i have  VTS_01_1.VOB  VTS_01_2.VOB  VTS_01_3.VOBI want to rename for use in mencoder withmovie_1.avi movie_2.avi,etc..I know how to substitute VTS,but not VOB,can someone help please?for i in  VTS_01_[1-4]*B;do echo ${i/VTS_0?_?.VOB/Movie}.avi;donegive meMovie.aviMovie.aviMovie.aviMovie.avii wantMovie_1.aviMovie_2.aviMovie_3.aviMovie_4.aviThanks who will help.
Bash multiple rename in one line: is possible?
bash;rename
BIngo!for i in  VTS_01_[1-4]*B;do echo mv $i  $(echo $i|sed 's/VTS/Movie/g;s/VOB/avi/g');doneIs more useful with commands like mencoder,etc