home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!sun-barr!ames!agate!tfs.com!tfs.com!ashish
- From: ashish@tfs.com (Ashish Mukharji)
- Subject: csh variable distribution
- Message-ID: <1992Aug28.234111.24909@tfs.com>
- Organization: TRW Financial Systems
- Date: Fri, 28 Aug 1992 23:41:11 GMT
- Lines: 26
-
-
- Is there a way to do "text substitution" in csh under BSD?
- Here's what I'd like to be able to do:
-
- ----------------------------------------------------------
- #!/bin/csh -f
-
- if ( machine is fast ) then
- set compression = "| /usr/ucb/compress -f"
- else
- set compression = " "
- endif
-
- . . .
-
- dump $compression | dd
-
- ----------------------------------------------------------
-
- Thanks for your suggestions!
-
- -ashish
-
- --
- Ashish Mukharji Jesus he knows me, and he knows I'm right,
- ashish@tfs.COM I've been talking to Jesus all my life ... Genesis
-