[Linux-disciples] Troubles with 'rename'
Stephen R Laniel
steve at laniels.org
Mon Jul 25 13:43:44 EDT 2005
On Mon, Jun 27, 2005 at 11:46:45PM -0400, Stephen R Laniel wrote:
> Turns out that it's easy to do with 'find' and 'rename':
>
> #!/bin/bash
> PATH=/usr/bin
> find -depth -execdir rename 's/ /_/g' '{}' \;
I just discovered that -execdir is not available in versions
of the findutils package prior to 4.2. In particular, the
version of findutils in Sarge doesn't have it.
Possibly worth something.
--
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20050725/36c70fcc/attachment.pgp
More information about the Linux-disciples
mailing list