Jul 3, 2012

Shell script to rename the files as per requirement.

Shell script to rename .xml files to .properties

for NAME in *.xml;
do
length=${#NAME};
echo ${NAME} ${length};
mv ${NAME} ${NAME:0:${length}-4}.properties
done;

No comments:

Post a Comment