How about:
for x in *; do mv $x ${x// /_}; done
That's kinda what I was thinking, only problem with that is, the file named "blah blah.p" will cause an error as bash/sh/ksh will think it is two files.
mv: cannot stat `blah': No such file or directory
mv: cannot stat `blah.p': No such file or directory
even tried using `ls -c1` same thing. Worse thing is I know I did this before, so long ago, maybe I used Perl after all. Hmm...
- : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html