Re: Rename bash script help
If that is valid shell command, you need to use "call" command to execute it and reformat it to a single line.
for file in Stat_file*.txt; do
mv "$file" "CUPT${file#Stat_file}"
done