add remove spaces script

This commit is contained in:
Olaf Rempel 2010-03-13 16:41:08 +01:00
parent 7ab83e358d
commit dc29e9d088

9
remove_spaces.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
IFS=$'\n';
for f in `find .`; do
file=$(echo $f | tr [:blank:] '_')
[ -e $f ] && [ ! -e $file ] && mv "$f" $file;
done;
unset IFS