Core Coding®

Lower linux filenames

  Lower linux filenames
Rename all files in a directory to lowercase.
#!/bin/sh
for x in *; do
y=`echo $x | tr '[A-Z]' '[a-z]'`
if [ $x != $y ]; then
mv $x $y
fi
done

Go back to resources
Home Mail GitHub