Path: utzoo!attcan!uunet!wyse!mips!prls!philabs!ttidca!clark From: clark@ttidca.TTI.COM (Ralph Clark) Newsgroups: comp.os.minix Subject: my read-all-from-dos script (version 23) Keywords: dosread Message-ID: <2951@ttidca.TTI.COM> Date: 24 Jul 88 06:45:23 GMT Organization: Citicorp/TTI, Santa Monica Lines: 20 Here's the one I've been using since the first time my fingers got tired of backspacing to put the -a in the right place : ----------------cut me--------------- # dosrdall - read all files (as ascii) from dos diskette echo "dosrdall reads all files (as ASCII) from DOS disk to current directory" getlf "to proceed, press RETURN" for FILE in `dosdir 0 | grep -v [a-z] | tr [A-Z] [a-z]` do echo $FILE dosread -a 0 $FILE >$FILE done -------------- The grep -v gets rid of the title and footer from dosdir, which have lower case letters. I wish there were an option in dosread-write-dir to suppress the noise and just give file names. This script needs addition of a parameter to specify a dos subdirectory. -- Ralph Clark (clark@ttidca.tti.com) {csun|philabs|psivax}!ttidca!clark