Path: utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!gatech!bloom-beacon!mit-eddie!uw-beaver!ssc-vax!bcsaic!paula From: paula@bcsaic.UUCP (Paul Allen) Newsgroups: comp.os.minix Subject: Re: Wild-card for DOSREAD and DOSWRITE? Message-ID: <6623@bcsaic.UUCP> Date: 22 Jul 88 18:28:22 GMT References: <26500003@silver> Reply-To: paula@bcsaic.UUCP (Paul Allen) Organization: Boeing Computer Services AI Center, Seattle Lines: 33 In article <26500003@silver> saini@silver.bacs.indiana.edu writes: > >I wanted to know whether there was a way to use (or simulate) >wild-card in DOSREAD and DOSWRITE. It becomes a pain to copy all the >files individually to minix from DOS. > >Iqbal How 'bout something like: for n in `ls *` do doswrite 1 $n <$n done This copies all the files in the current directory to DOS files on the B: drive. To copy from a DOS floppy into Minix, you need to somehow generate a list of the filenames to copy. Then the actual copy can be done with: for n in `cat copylist` do dosread 1 $n >$n done Anybody else have a better method? Paul -- ------------------------------------------------------------------------ Paul L. Allen | paula@boeing.com Boeing Advanced Technology Center | ...!uw-beaver!ssc-vax!bcsaic!paula