Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!caen!news.cs.indiana.edu!noose.ecn.purdue.edu!mentor.cc.purdue.edu!sage.cc.purdue.edu!asg From: asg@sage.cc.purdue.edu (The Grand Master) Newsgroups: comp.sys.amiga.introduction Subject: Re: Wildcards in the CLI Message-ID: <12024@mentor.cc.purdue.edu> Date: 7 May 91 21:45:13 GMT Sender: news@mentor.cc.purdue.edu Reply-To: asg@sage.cc.purdue.edu (The Grand Master) Organization: Purdue University Lines: 53 In article mwm@pa.dec.com (Mike (My Watch Has Windows) Meyer) writes: } }ARP can't reasonably support "*". It can only try, and fail. You see, }AmigaDOS uses "*" to mean "the window the is typing in". The third }time I typed "copy * filename" to cram text into a file, and then had }to watch the ARP copy move every file in my current directory into }filename, I deinstalled arp. So then ARP is reasonably supporting * as it is used in most other major OS's, to mean match any pattern. } } >Copy files [to] [file/dir] } > ^^^^ why the f*** ? } } example, "copy to destination from source". } }For utilities that generate command lines, this is what makes the }multi-source-file version copy work reasonably. } }For instance, on unix, to move all the .c files out of a directory }requires exec'ing one cp per file, even though cp takes multiple }arguments. You do: } } find . -name '*.c' -exec cp '{}' dest \; } Someone has missinformed you about this: My man page says: Usage: cp [-ip] f1 f2; or: cp [-irp] f1 ... fn d2 which means you can do cp ` find . -name '*.c' -print` dest The basic wildcard notation of UNIX is pretty standard among some other popular OS's. DOS and VMS treat * the same way as does UNIX. It is not unreasonable to ask Amiga to do the same. Bruce } The Grand Master # asg@sage.cc.purdue.edu ### ##### # PUCC ### # ;-) # # ;'> # ##