login
Header Space

 
 

Using mtools

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Subject: Using mtools
Date: Friday, August 14, 1992 - 8:48 pm

I'm trying to get a BASH shell script written so that I selectively
batch copy files from my DOS partition to Linux.  Here's the shell
script:

mdir | sed "/^ /d" | sed "/^$/d" | tr '[A-Z]' '[a-z]' | sed "/^\./d" >
tmp$$
joe tmp$$
sed "/^\(............\)\(.*\)$/s//\1/" < tmp$$ | sed "s/ /./" | sed "s/
//g" > tmpa$$  <----- (end of previous line)
mv tmpa$$ tmp$$
for file in `cat tmp$$`
do
  mread '$file' $file
done
rm tmp$$ tmp$$~
exit

However, the "mread '$file' $file" command results in a <"$FILE" not
found message> by mtools.  I've tried escaping the ' symbol (\') in the
shell
script but this doesn't work either.  Any suggestions?

 * Origin: Dane's Mailbox * Tucson, AZ (1:300/21.1)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Using mtools, Dane Beko, (Fri Aug 14, 8:48 pm)
speck-geostationary