[NBLUG/talk] Create a range of files with cp

Mark Street jet at sonic.net
Fri Jun 13 12:40:04 PDT 2003


Yeah, that's the one.... thanks

On Friday 13 June 2003 11:59, Ron Wickersham wrote:
> yes that works in csh and i presume in bash as well.
>
> it's not really cp that's doing the work, the shell reads your range and
> sends the expanded list to the cp command.
>
> so if you have a thousand files like sm000.jpg thru sm999.jpg and want
> to copy sm 320.jpg and sm323.jpg thru sm327.jpg then
>
> cp sm320.jpg sm32[3-7].jpg destination.directory

-- 
Mark Street, D.C.
Red Hat Certified Engineer
Cert# 807302251406074
--
Key fingerprint = 3949 39E4 6317 7C3C 023E  2B1F 6FB3 06E7 D109 56C0
GPG key http://www.streetchiro.com/pubkey.asc




More information about the talk mailing list