brainchild1977
Programmer
Hello,
I need to be able to loop through all the files in a certain directory (e.g directory A). The files am looking for would have an EMS extension (i.e *.ems). Once it locates these files, my script should rename the files i.e from testfile.ems to testfile.txt. It should keep the orginal filename(prefix) so the only thing am changing is the extension. After renaming, i need to move the newly renamed files to a seperate directory (e.g Directory B)
Am very new to Unix scripting so any help would be appreciated.
I need to be able to loop through all the files in a certain directory (e.g directory A). The files am looking for would have an EMS extension (i.e *.ems). Once it locates these files, my script should rename the files i.e from testfile.ems to testfile.txt. It should keep the orginal filename(prefix) so the only thing am changing is the extension. After renaming, i need to move the newly renamed files to a seperate directory (e.g Directory B)
Am very new to Unix scripting so any help would be appreciated.