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

Danny Cox danscox at mindspring.com
Fri May 7 17:51:42 EDT 2004


On Thu, 2004-05-06 at 17:53, Jason Etheridge wrote:
> > find / -name "*.jpg" -exec mv /mnt/mymachine/ {} \;
> 
> mv might have trouble across filesystems.  Could do a cp and then a rm.

	No, you're thinking of 'ln'.  mv will happily move a file wherever,
even if it must copy and unlink.

-- 
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.

Danny



More information about the Ale mailing list