Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!hplabs!hpcc01!hpcuhb!hpda!hpcupt1!hpirs!wk From: wk@hpirs.HP.COM (Wayne Krone) Newsgroups: comp.sys.hp Subject: Re: sed/csh interaction Message-ID: <4640027@hpirs.HP.COM> Date: 10 Aug 90 04:27:40 GMT References: <1311@eastman.UUCP> Organization: Hewlett Packard, Cupertino Lines: 17 This isn't the question you asked, but FYI either one of the following scripts should work on both machines. Both eliminate the quoted newline which appears to be handled differently by the two csh's. Replace the quoted newline by a second "-e": #!/bin/csh -f set title=`tee temporary | sed -e '/^Subject: /\\!d' -e 's/Subject: //'` echo $title Reduce the sed script down to a single command: #!/bin/csh -f set title=`tee temporary | sed -n -e 's/^Subject: //p'` echo $title Wayne