rename_files_lowercase.ksh 256 B

12345678910111213
  1. #!/bin/ksh
  2. for f in $(ls -p | grep -v /)
  3. do
  4. #print "Full file path in $(pwd) dir : $f"
  5. #$(echo $f | tr '[A-Z]' '[a-z]')
  6. #echo $f | tr '[A-Z]' '[a-z]'
  7. #if [ -z "$f" ]; then
  8. FILE=$(echo $f | tr [A-Z] [a-z])
  9. #echo $FILE
  10. mv -v "$f" "$FILE"
  11. #fi
  12. done