Copying Multiple Files

Tapani Tarvainen tarvaine at tukki.jyu.fi
Sun May 27 04:25:45 AEST 1990


In article <1990May26.182215.27766 at tukki.jyu.fi> I wrote:
>>How can I copy them to files with another root name while keeping the
>>extensions? 

>ls foo.* | sed 's/foo\(.*\)/mv foo\1 bar\1/' | sh
                             ^^
Should've been "cp" of course.


-- 
Tapani Tarvainen    (tarvaine at jyu.fi, tarvainen at finjyu.bitnet)



More information about the Comp.unix.questions mailing list