On Sun, Apr 17, 2011 at 10:27 PM, Michael Rasmussen <[email protected]> wrote:
>    however the syntax to work with that is find ... -print0 | xargs -0 which 
> then uses NULL as the file name delimiter
>    so:  find <path> -type f -print0 | xargs -0 rename 's/ /_/g'

That would seem to work:

$ find -type f
./bar/g h.txt
./bar/e f.txt
./foo/a b.txt
./foo/c d.txt

$ find . -type f -print0 | xargs -0 rename 's/ //g'

$ find -type f
./bar/gh.txt
./bar/ef.txt
./foo/ab.txt
./foo/cd.txt

$ lsb_release -d
Description:    Ubuntu 10.04.2 LTS

Good luck and let us know what works for you.

Regards,
- Robert
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to