[Linux-disciples] Moving files

Stephen R Laniel steve at laniels.org
Mon Jun 5 13:29:34 EDT 2006


On Mon, Jun 05, 2006 at 01:16:39PM -0400, Adam Rosi-Kessel wrote:
> Also, I don't think the -depth option has any significance here.

Come to think of it, when I wrote that I was thinking that
we might be moving some directories, in which case -depth
has some value. But if we're just moving files, then it
doesn't.

> I would go with the simpler:
> 
> find . -type f -iregex '^....\.mp3$' -exec mv '{}' [newfolder] ';'
> 
> which I think in all imaginable cases does the same thing.

If you don't want to move files whose names contain dashes
or underscores, then the [[:alnum:]] one works better.

-- 
Stephen R. Laniel
steve at laniels.org
Cell: +(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: 191 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060605/dff29bc6/attachment.pgp


More information about the Linux-disciples mailing list