home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / shell / 3923 < prev    next >
Encoding:
Internet Message Format  |  1992-09-12  |  801 b 

  1. Path: sparky!uunet!sun-barr!news2me.ebay.sun.com!jethro.Corp.Sun.COM!oogoody!tmhoff
  2. From: tmhoff@oogoody.Corp.Sun.COM (Todd Hoff)
  3. Newsgroups: comp.unix.shell
  4. Subject: seding with variables and /s question
  5. Date: 12 Sep 1992 22:01:33 GMT
  6. Organization: Sun Microsystems, Inc.
  7. Lines: 8
  8. Distribution: world
  9. Message-ID: <lb4q5tINNaef@jethro.Corp.Sun.COM>
  10. Reply-To: tmhoff@oogoody.Corp.Sun.COM
  11. NNTP-Posting-Host: oogoody.corp.sun.com
  12.  
  13.  
  14. I'm having a hard time using variables to specify search patterns containind /s
  15. in sed. Say my home development directory path is in $DEVEL and my destination
  16. path is in $DEST. Since these are path specifications they contain /s and when
  17. I do something like: sed -e 's/$DEVEL/$DEST/' $file > $destfile
  18. sed barfs on the /s. I've tried lots of variations. Any clues?
  19.  
  20. Thanx
  21.