From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9be2f49cc7d7111fcf58683cd36844ef@vitanuova.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] Re: \n\n\n to \n\n From: rog@vitanuova.com MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Wed, 5 Mar 2003 18:05:36 +0000 Topicbox-Message-UUID: 7a30d790-eacb-11e9-9e20-41e7f4b1d025 > > And of course you can always wrap sam in a script just to > > pretend that you have ssam. > > could someone show me , how? the following script does something of the sort; if you were prepared to go without error messages, you could dispense with the clunky sed script. unfortunately it produces output even if there's an error in the script. i don't know if there's anything that can be done about that... use like: echo hello | ssam ',x/l/c/x/' it's only had 'presotto' testing... #!/bin/rc { { for (i) echo $i echo w /fd/1 } | sam -d /fd/3 |[2] sed -e '/^\?changed files/d' -e '/^[^?]/d' -e 's/\?/ssam: /' >[1=2] } <[3=0]