Path: utzoo!attcan!uunet!crdgw1!sixhub!davidsen From: davidsen@sixhub.UUCP (Wm E. Davidsen Jr) Newsgroups: comp.unix.xenix Subject: Re: doscp problem Message-ID: <684@sixhub.UUCP> Date: 21 Mar 90 19:00:59 GMT References: <459@memqa.uucp> Reply-To: davidsen@sixhub.UUCP (bill davidsen) Organization: *IX Public Access UNIX, Schenectady NY Lines: 16 exes=`dosls c: | grep "\.EXE" | sed 's/^/c:/'` doscp $exes . You may want to define a shell function the do the first part if you do it a lot, such as dosmatch() { dosls $1 | grep "$2" | sed "s/^/$1/"; } doscp `dosmatch c: "\.EXE"` . This scores about a 6 on the 1..10 "I feel clever" scale. I don't doubt you'll get some other, perhaps simpler, answers. -- bill davidsen - davidsen@sixhub.uucp (uunet!crdgw1!sixhub!davidsen) sysop *IX BBS and Public Access UNIX moderator of comp.binaries.ibm.pc "Getting old is bad, but it beats the hell out of the alternative" -anon