home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!spool.mu.edu!caen!uakari.primate.wisc.edu!usenet.coe.montana.edu!rpi!masscomp!peora!tarpit!fang!gator!rde!tssi!unlinfo.unl.edu!unlinfo!lappala
- From: lappala@unlinfo.unl.edu (Kris Lappala)
- Subject: ex editor options
- Message-ID: <1992Sep9.151513.8508@unlinfo.unl.edu>
- Keywords: ex silence option
- Sender: news@unlinfo.unl.edu
- Nntp-Posting-Host: unlinfo.unl.edu
- Organization: University of Nebraska - Lincoln
- Distribution: g
- Date: Wed, 9 Sep 1992 15:15:13 GMT
- Lines: 33
-
- I am using the ex editor in a shell file and wish to suppress the
- interactive feedbaack to the user. I have read the man page on ex
- wish shows the option to be - | -s.
- I beleive my problem is syntax but can't quite figure it out. Here is
- a copy of the shell program:
- string="`grep $1 ${CSHRC}`"
-
- /**********************************************/
-
- if [ -z "$string" ]
- then
- echo "setenv $1 $2" >> ${CSHRC}
-
- else
- ex - | -s ${CSHRC} <<-end_of_edit
- /setenv *$1
- d
- i
- setenv $1 $2
- .
- w
- q
- end_of_edit
-
- fi
-
-
- /**********************************************/
-
-
- if anyone can help please send a reply to:
- lappala@cse.unl.edu
- thanks
-