From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Koray Erkan" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: RE: [9fans] Sam scripting Date: Thu, 23 Nov 2006 15:36:37 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <7cf3d9b282bcf24804e48d407f86b378@coraid.com> Topicbox-Message-UUID: e5f8f9d4-ead1-11e9-9d60-3106f5b1d025 Fantastic! Exactly what I needed. Thanks, Erik. -- K > -----Original Message----- > From: 9fans-bounces+koray.erkan=yahoo.com@cse.psu.edu > [mailto:9fans-bounces+koray.erkan=yahoo.com@cse.psu.edu]On Behalf Of erik quanstrom > Sent: Thursday, November 23, 2006 3:13 PM > To: 9fans@cse.psu.edu > Subject: Re: [9fans] Sam scripting > > > sure, you can use sam for scripting. one can suppress > starting samterm with the -d option. though this is more > like using ed in a script than sed. > > i attached a unix script that i use to find people in > address files with records containing a '^NAME ' field, > delimited by newlines. it's written for byron's rc. > > there's also an "ssam" out there analogous to sed. > i believe this is the url: > http://www.freshports.org/editors/ssam/ > though i haven't checked it myself. > > - erik