From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3A4361C1.93E1B68@FWS.Gov> From: "Mark C. Otto" MIME-Version: 1.0 To: 9fans@cse.psu.edu Subject: Re: [9fans] scripting sam References: <20001222063311.8E480199DD@mail.cse.psu.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 22 Dec 2000 09:14:25 -0500 Topicbox-Message-UUID: 3c821104-eac9-11e9-9e20-41e7f4b1d025 In unix, the difference between ed and sed is that edits are applied globally by default. In sam, this is equivalent to adding a comma for the addresses. As a variation to russ's suggestion, you can use an inline here document rc(1), and add arguments right into your editing script. sam -d filename </ c/$/ other sam commands ... w $ q ! Mark The future of plan9: small tools to make big things.