[Linux-disciples] Moving files
Stephen R Laniel
steve at laniels.org
Mon Jun 5 11:59:50 EDT 2006
On Mon, Jun 05, 2006 at 10:34:47AM -0500, Karl Sokol wrote:
> I want to move all of the files on my computer that have exactly 4 letters and
> a .mp3 extension, to a single folder. Is this possible.
Yes. You'll do something like this:
find . -iregex '^[[:alnum:]\{4\}\.mp3$' -depth mv '{}' [newfolder] \;
Run that from within the folder where you want to move
everything. [newfolder] is the folder to which you'll move
everything.
That's untested, but it's on the road to what you want to
see. See the man page for find(1) for details.
--
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/8800f795/attachment.pgp
More information about the Linux-disciples
mailing list