From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1044c2,fb87ccfc9e8baf0a X-Google-Attributes: gid1044c2,public X-Google-Thread: 1103af,fb87ccfc9e8baf0a X-Google-Attributes: gid1103af,public X-Google-Thread: f678f,fb87ccfc9e8baf0a X-Google-Attributes: gidf678f,public X-Google-Thread: f66ab,fb87ccfc9e8baf0a X-Google-Attributes: gidf66ab,public X-Google-Thread: f71eb,fb87ccfc9e8baf0a X-Google-Attributes: gidf71eb,public X-Google-ArrivalTime: 1995-01-04 15:49:30 PST Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!math.ohio-state.edu!uwm.edu!msunews!harbinger.cc.monash.edu.au!fangorn.cs.monash.edu.au!not-for-mail From: kevinl@fangorn.cs.monash.edu.au (Kevin Lentin) Newsgroups: comp.os.linux.misc,comp.os.os2.misc,comp.unix.osf.misc,comp.os.msdos.misc,comp.os.mach Subject: Re: The big Question Followup-To: comp.os.linux.misc,comp.os.os2.misc,comp.unix.osf.misc,comp.os.msdos.misc,comp.os.mach Date: 4 Jan 1995 23:49:30 GMT Organization: Monash University Distribution: world Message-ID: <3efc6a$ba6@harbinger.cc.monash.edu.au> References: <3dpmo9$6fh@calvin.st-and.ac.uk> <3dupdf$7i4@hpscit.sc.hp.com> <3dvd4u$rmv@usenet.INS.CWRU.Edu> <1995Jan2.135536.27035@imec.be> NNTP-Posting-Host: fangorn.cs.monash.edu.au X-Newsreader: TIN [UNIX 1.3 941213BETA PL0] Xref: nntp.gmd.de comp.os.linux.misc:37638 comp.os.os2.misc:125443 comp.unix.osf.misc:2254 comp.os.msdos.misc:28446 comp.os.mach:3435 Jim_Mann@transarc.com wrote: > On the other hand, because of this, I believe DOS will allow you to > issue a command like: > copy *.doc *.bak > and have it do the right thing (copy a.doc to a.bak, b.doc to b.bak, > and so forth). Because the shell handles expansion in UNIX, UNIX > can't do this sort of thing. And there are things you can do with the unix style of wildcards that DOS can't do. Chances are though, that it is easier to work around them in unix than in dos. foreach i (*.doc) cp $i $i:r.bak end Anyway, a much better way would be: mkdir bak cp *.doc bak Much easier to handle that way. Why not try to get dos to tell you all files with the word foo in their name. *foo* is _NOT_ going to work. You can't have more than one * before and after the . in a DOS wildcard (for common DOS utilities). It's ridiculous. And you can't get around that easily. My point is that you can find things in both that the other can't do _exactly_ the same. Doesn't mean it's not possible. But it is probably more likely solvable (and easier) in unix. -- [==================================================================] [ Kevin Lentin |___/~\__/~\___/~~~~\__/~\__/~\_| ] [ kevinl@bruce.cs.monash.edu.au |___/~\/~\_____/~\______/~\/~\__| ] [ Macintrash: 'Just say NO!' |___/~\__/~\___/~~~~\____/~~\___| ] [==================================================================]