home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8362 < prev    next >
Encoding:
Internet Message Format  |  1992-08-15  |  981 b 

  1. Path: sparky!uunet!nwnexus!remote!Gatekeeper
  2. From: Dane.Beko@p1.f21.n300.z1.fidonet.org (Dane Beko)
  3. Newsgroups: comp.os.linux
  4. Subject: Using mtools
  5. Message-ID: <713917103.F00060@remote.halcyon.com>
  6. Date: Fri, 14 Aug 1992 16:48:56 -0800
  7. Sender: Gatekeeper@remote.halcyon.com
  8. Lines: 24
  9.  
  10. I'm trying to get a BASH shell script written so that I selectively
  11. batch copy files from my DOS partition to Linux.  Here's the shell
  12. script:
  13.  
  14. mdir | sed "/^ /d" | sed "/^$/d" | tr '[A-Z]' '[a-z]' | sed "/^\./d" >
  15. tmp$$
  16. joe tmp$$
  17. sed "/^\(............\)\(.*\)$/s//\1/" < tmp$$ | sed "s/ /./" | sed "s/
  18. //g" > tmpa$$  <----- (end of previous line)
  19. mv tmpa$$ tmp$$
  20. for file in `cat tmp$$`
  21. do
  22.   mread '$file' $file
  23. done
  24. rm tmp$$ tmp$$~
  25. exit
  26.  
  27. However, the "mread '$file' $file" command results in a <"$FILE" not
  28. found message> by mtools.  I've tried escaping the ' symbol (\') in the
  29. shell
  30. script but this doesn't work either.  Any suggestions?
  31.  
  32.  * Origin: Dane's Mailbox * Tucson, AZ (1:300/21.1)
  33.  
  34.