Bash Help: Renaming all files in a Directory

Patrick Doyle wpdster at gmail.com
Sat Jul 22 00:54:45 UTC 2006


> No, the loop will have f=Family Pic 001.jpg but the mv command will
> fail unless you use "$f" because mv will see it as 3 file names,
> split at the spaces.
>
You are, of course, correct.  That is why I end up playing with stupid
little scripts like that with "echo" inserted before the
possibly-data-descructive command.

Ah well...

--wpd




More information about the fedora-list mailing list