EnderUNIX Team.


EnderUNIX tips

Mail to My Friend , Home Page

[ Shell Scripting ]

"renaming the files extension" - İsmail Yenigül - (2005-09-24 23:15:03)   [5121]

To move all *.htm to *.txt
$ ls
a.htm b.htm c.htm d.htm

$ for i in *.htm; do mv ${i%.*}.htm ${i%.*}.txt; done

$ ls
a.txt b.txt c.txt d.txt




Mail to My Friend , Home Page