Advertisement
jpenguin

toLower.sh

Dec 9th, 2021
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. find . -depth -exec sh -c '
  4. t=${0%/*}/$(printf %s "${0##*/}" | tr "[:upper:]" "[:lower:]");
  5. [ "$t" = "$0" ] || mv -i "$0" "$t"
  6. ' {} \;
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement