#!/bin/bash
for i in $(ls); do
oldname="$i"
newname=$(echo "$oldname" | tr 'A-Z' 'a-z')
if [ "$oldname" != "$newname" ]
then
mv -i "$oldname" "$newname"
fi
done
Tuesday, April 4, 2006
Shell script to make all files in directory lowercase
Subscribe to:
Post Comments (Atom)


No comments:
Post a Comment