Script for Changing
file name from upper case to lower case :
1. Create a file ( file name is Upper Case)
#vim ANSHUMAN
2. Now create script:
#vim script.sh
for i in *;
do
mv $i
`echo $i | tr [:upper:] [:lower:]`;
done
save it.
3. change the permission of script file:
#chmod a+x script.sh
4.Now, run the script:
#./script.sh ANSHUMAN
5.Now you can see by ls command:
#ls
coming output is
anshuman script.sh
No comments:
Post a Comment