Michael Go said:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
underscore. I've tried this:
find . -type f|grep " "|/usr/xpg4/bin/awk '{printf "mv \"%s\"",$0;
gsub(/ /,"_"); print " "$0}'>dir
but this writes each move statement to a file and then you execute the
file. The problem with this is the first statement executes
converting
a directory name from "directory name" to "directory_name". Now every
move statement that uses that directory name fails b/c it can't find
"directory name".
How so? Your "find" command uses "-type f", so it wouldn't
affect directories, right?
No, the awk command is going to modify spaces in directory names too.