scripts/remove_spaces.sh

10 lines
153 B
Bash
Raw Normal View History

2010-03-13 16:41:08 +01:00
#!/bin/bash
IFS=$'\n';
for f in `find .`; do
file=$(echo $f | tr [:blank:] '_')
[ -e $f ] && [ ! -e $file ] && mv "$f" $file;
done;
unset IFS