home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!nwnexus!remote!Gatekeeper
- From: Dane.Beko@p1.f21.n300.z1.fidonet.org (Dane Beko)
- Newsgroups: comp.os.linux
- Subject: Using mtools
- Message-ID: <713917103.F00060@remote.halcyon.com>
- Date: Fri, 14 Aug 1992 16:48:56 -0800
- Sender: Gatekeeper@remote.halcyon.com
- Lines: 24
-
- 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)
-
-