[Linux-disciples] Moving files
Stephen R Laniel
steve at laniels.org
Mon Jun 5 21:07:31 EDT 2006
On Mon, Jun 05, 2006 at 07:16:57PM -0500, Karl Sokol wrote:
> church at ubuntu:/share/new$ find . -type f -iregex '^....\.mp3$' -exec mv '{}' /
> home/church/Desktop/new/ ';'
> church at ubuntu:/share/new$
>
> For that matter, removing everything from '-exec' on doesn't find anything. I
> have tried many variations, but with no success.
That find command, with the -exec after it, wouldn't print
any output to the screen; it would just move all those files
to ~church/Desktop/new .
If you want see which files 'find' will move without
actually moving them, trim everything from -exec on. That
will list the files; the -exec will move them.
> As for going back to itunes, something went drastically wrong and it shows that
> she has no songs. So, we mounted it as a drive and copied the songs over to my
> computer.
It may show that she has no songs because the 'mv' command
moved them. Check /home/church/Desktop/new .
--
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/fc57ad74/attachment.pgp
More information about the Linux-disciples
mailing list