[ale] Shell Scripting -> find files *.<ext> and move them to /backup

Nathan J. Underwood ale1 at cybertechcafe.net
Thu May 6 18:41:37 EDT 2004


Hmmmm, I like the rm idea.  Once complete, I could do a final search for 
files with a .jpg, .gif, etc. extension, and make sure that I've not 
missed anything.  If I decided to do that, would it be:

find /path/to/c -iname "*.gif" -exec cp {} /mnt/mymachine -exec rm ()\;

Jason Etheridge wrote:

> Robert Heaven wrote:
> 
>> I think might work:
>>
>> find / -name "*.jpg" -exec mv /mnt/mymachine/ {} \;
> 
> 
> mv might have trouble across filesystems.  Could do a cp and then a rm.
> 
> -- Jason
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature




More information about the Ale mailing list