Advertisement
Guest User

Untitled

a guest
Mar 29th, 2012
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. # source: http://www.linuxquestions.org/questions/programming-9/bash-script-to-remove-capitalisation-and-spaces-form-a-filename-309567/
  2.  
  3. IFS=$'\n'
  4. for f in `find .`; do
  5.    file=$(echo $f | tr [:blank:] '_')
  6.    [ -e $f ] && [ ! -e $file ] && mv "$f" $file
  7. done
  8. unset IFS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement