I have write a script for renaming it is like this
for i in *.xml
do
cp ${i} "suffix${i:6}"
done
but I do not know how to change the text inside the xml file.
For example in all the files I have the word “asdfg” and I want to replace that with “qwert”.
I know is possible and probably simple to do it in bash script but I do not know how to code this and I do not know even how to google it
Thanks
1 Answer