From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Tue, 7 Feb 2006 19:08:36 -0500 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] sam: ?changes not in sequence In-Reply-To: <43E934CD.8090002@orthanc.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43E934CD.8090002@orthanc.ca> Topicbox-Message-UUID: f71a30bc-ead0-11e9-9d60-3106f5b1d025 > Should not the sam command: > > , x /^.*Creating.+\n/ d > > delete lines 1,3,5,7 and 9? Or have I lost my mind (again). Instead of > deleting the lines, sam spits out the "?changes not in sequence" error. There is a difference between what you wrote and , x/^.*Creating.+\n/ d which is what you meant to write. If a space follows x then it means make x loop over lines, so you can also use the simpler: ,x g/Creating/d Russ