doscp problem

Wm E. Davidsen Jr davidsen at sixhub.UUCP
Thu Mar 22 05:00:59 AEST 1990


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 at 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



More information about the Comp.unix.xenix mailing list