Copying Large Amounts of data via USB/FW (was Re: [X-Unix] Re: Pokey LAN transfers (Resolved))

David Ledger dledger at ivdcs.demon.co.uk
Fri Dec 28 08:02:46 PST 2007


At 02:14 -0800 28/12/07, Wing Wong wrote:
<snip>
>for ext in mpg avi wmv mp4 flv
>do
>    find /volumes/400gbdiskl -name *.${ext} -exec mv {}
>/volumes/10tbarray/videos/
>done

Or just (all on one line)

find /volumes/400gbdiskl \( -name \*.mpg -o -name \*.avi -o  -name 
\*.wmv -o -name \*.mp4 -o  -name \*. flv \) -exec mv {} 
/volumes/10tbarray/videos/ \;

will do it all on one pass.

Note that the '\' before the '*' is neccessary if issued while in any 
directory containing files with those extensions in either case.

David


-- 
David Ledger - Freelance Unix Sysadmin in the UK.
HP-UX specialist of hpUG technical user group (www.hpug.org.uk)
david.ledger at ivdcs.co.uk
www.ivdcs.co.uk


More information about the X-Unix mailing list