I rename few files (1234.xml, 9876.xml, 2345.xml etc) with .xml extension with the following code :
for i in *.xml
do
mv $i $i.ab
done
it becomes 1234.xml.ab, 9876.xml.ab, 2345.xml.ab...etc
Now, I want to rename it to 1234.xml.SD, 9876.xml.SD, 2345.xml.SD...etc.
These are 100 files.
How can this be achieved with the help of code ? Please advise.