Hi Gurus,
I need to change a large amout of file name's.
for example:
current file name:
file_ABCDE_sufix.txt
I need to change them as
file_FGHIGHKE_sufix.txt.
Is there any way I can change them with script.
Thanks in advance
Hi Gurus,
I need to change a large amout of file name's.
for example:
current file name:
file_ABCDE_sufix.txt
I need to change them as
file_FGHIGHKE_sufix.txt.
Is there any way I can change them with script.
Thanks in advance
IFS="_"
for FILE in file_abcde_*
do
set -- $FILE
echo mv "$FILE" "${1}_FGHIGHKE_${3}"
done
Remove the echo once you've tested and seen whether it works for you.