[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Shell Scripting -> find files *.<ext> and move them to /backup
- Subject: [ale] Shell Scripting -> find files *.<ext> and move them to /backup
- From: danscox at mindspring.com (Danny Cox)
- Date: Fri May 7 17:51:42 2004
- In-reply-to: <[email protected]>
- References: <[email protected]> <1083880036.588.1.camel@bsd> <[email protected]>
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