Renaming multiple files in multiple directories.

Christopher Brown yellowdog-general@lists.terrasoftsolutions.com
Fri, 17 Sep 2004 22:38:09 -0700



> (Warning: I have not tested this.  Also, it assumes you don't have any
> files with ogg.ogg in the middle.)
>
> find /home/user/oggs -name '*ogg.ogg' -print0 \
>| xargs -0 rename ogg.ogg .ogg

Worked like a charm!

Thanks Patrick

Christopher