I want to change the name of the files stored in a series of filelists. This is the code I am using:
suffix=[event]
for i in {0..9} a b; do
for file in $(cat gsc"${i}".list); do
echo $file$suffix
done
done
The output is fine, but the process is much slower than if I just output $file
.
That is to say, the scripts works fine, but why so slow?
EDIT: probably not clear: I need to change the filename WITHIN the filelist (text file).