Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!pa.dec.com!bacchus!mwm From: mwm@pa.dec.com (Mike (My Watch Has Windows) Meyer) Newsgroups: comp.sys.amiga.misc Subject: Re: YES: device... Message-ID: Date: 29 Jan 91 23:53:57 GMT References: <14426@chaph.usc.edu> <18997d60.ARN00e6@wizard.ruhr.de> Sender: news@pa.dec.com (News) Followup-To: comp.sys.amiga.misc Organization: Missionaria Phonibalonica Lines: 30 In-Reply-To: mack@wizard.ruhr.de's message of 29 Jan 91 18:18:08 GMT In article <14426@chaph.usc.edu>, Alex C. Liu writes: >I was wondering, is there some sort of YES: device on the amiga that >does something that the yes command would do on unix? Simply put, >openning a file "YES:yes" for reading would make the reader read a >bunch of "yes" or (yes:no a bunch of "no"s) Why would I want this? >Well, sometimes, when I am unzooing or unlharcing I come up with a: > zoo file exits Replace? (Yes/No/All/Quit) >and often I would like to say NO for ALL of the existing files (Not >one of the options in that small menu) And having a YES: device that >does that would do the trick. Now, if a device like that doesnt >exist, how hard would it be to write one? Actually, this sounds like something I was thinking about - the "chars:" device. Doing: Copy "chars:This is my string*N" ram:x would put "This is my string" and a terminating newline into the file ram:x. Adding a flag (Where?) to wrap around when you got to the end would solve your problem.