I am trying to rename my file adding a letter at the end of the filename This is what I have so far
suffix=x
for f in *.tif
do
mv "$f" "$f$suffix.tif"
done
when it runs I get 001.tifx.tif
How do I get the script to run and output 001x.tif
?