Copying Multiple Files

Tapani Tarvainen tarvaine at tukki.jyu.fi
Sun May 27 04:22:15 AEST 1990



In article <23368 at adm.BRL.MIL> rose at baby.swmed.utexas.edu (Rose Oguz) writes:
>The original files have the same root name and different extensions.  How
>can I copy them to files with another root name while keeping the
>extensions? 

Just for fun, here's yet another way:

ls foo.* | sed 's/foo\(.*\)/mv foo\1 bar\1/' | sh

Just about any such conversion can be done this way, although
the command can get rather messy (nice way to convince novices
that you're a *nix guru ...)
-- 
Tapani Tarvainen    (tarvaine at jyu.fi, tarvainen at finjyu.bitnet)



More information about the Comp.unix.questions mailing list