Jon Simpson

Convert filenames to lowercase (Bash one-liner)

25 Feb 2010

One-liner to lowercase the filenames of all files in the current directory:

for f in *; do mv $f `echo $f | tr '[:upper:]' '[:lower:]'`; done

 Home