[Clipart] xargs rename isn't working...
Bryce Harrington
bryce at bryceharrington.org
Sun Apr 2 13:03:09 PDT 2006
On Sun, Apr 02, 2006 at 02:00:28PM -0600, Michael Moore wrote:
> Hi,
>
> I'm following the release procedure here:
> http://openclipart.org/wiki/index.php/Release_Procedure
>
> and am trying to get rid of spaces in the names. The find/xargs
> command isn't doing the trick though.
>
> $ find . -name "* *" | xargs rename ' ' '_'
>
> find _does_ find them all, and xargs doesn't throw any errors, but the
> files remain named the same thing after running it.
>
> Anyone know what I can do about it?
> I'm using Ubuntu Dapper, with the bash shell, if that helps any.
Try running it on just a few files and see if it works. If it does,
then the quantity of files or possibly the length of one of the
filenames may be the issue.
Also, I think that command could probably be improved. I think that'll
only replace the first space in the filename with an underscore. Really
what you want is to replace all of the spaces with underscores.
Bryce
More information about the clipart
mailing list