home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10488 < prev    next >
Encoding:
Text File  |  1992-08-29  |  866 b   |  36 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!sun-barr!ames!agate!tfs.com!tfs.com!ashish
  3. From: ashish@tfs.com (Ashish Mukharji)
  4. Subject: csh variable distribution
  5. Message-ID: <1992Aug28.234111.24909@tfs.com>
  6. Organization: TRW Financial Systems
  7. Date: Fri, 28 Aug 1992 23:41:11 GMT
  8. Lines: 26
  9.  
  10.  
  11. Is there a way to do "text substitution" in csh under BSD?
  12. Here's what I'd like to be able to do:
  13.  
  14. ----------------------------------------------------------
  15. #!/bin/csh  -f
  16.  
  17. if ( machine is fast ) then
  18.         set compression = "| /usr/ucb/compress -f"
  19. else
  20.         set compression = " "
  21. endif
  22.  
  23.  . . .
  24.  
  25. dump $compression | dd
  26.  
  27. ----------------------------------------------------------
  28.  
  29. Thanks for your suggestions!
  30.  
  31. -ashish
  32.  
  33. -- 
  34. Ashish Mukharji      Jesus he knows me, and he knows I'm right,
  35. ashish@tfs.COM       I've been talking to Jesus all my life ...    Genesis
  36.