Vivekanand Mathapati
Thursday, 21 May 2015
Write a shell script that accept one or more filenames as argument and convert all of them to uppercase, provided they exist in current directory.VTU MCA LAB4A
for x in $*
do
if [ -e $x ]
then
c=`echo "$x" | tr a-z A-Z`
mv $x $c
fi
done
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment