Skip to content

Instantly share code, notes, and snippets.

@imzjy
Created April 24, 2013 02:34
Show Gist options
  • Save imzjy/5449163 to your computer and use it in GitHub Desktop.
Save imzjy/5449163 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
for SRC in `find $1 -depth`
do
DST=`dirname "${SRC}"`/`basename "${SRC}" | tr '[A-Z]' '[a-z]'`
if [ "${SRC}" != "${DST}" ]
then
mv $SRC $DST || echo $SRC
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment