daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Mar 29th, 2012 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top