[comp.os.minix] my read-all-from-dos script

clark@ttidca.TTI.COM (Ralph Clark) (07/24/88)

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