From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <197a3463cec5dc91af55851cbcb841d0@quanstro.net> From: erik quanstrom Date: Thu, 23 Apr 2009 11:17:20 -0400 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] missing ed's line numbering in sam -d Topicbox-Message-UUID: f00b68f0-ead4-11e9-9d60-3106f5b1d025 you can do this in sam with an external program ; cat /bin/nl #!/bin/rc if(~ $#* 0) awk '{printf("%4d %s\n", ++lineno, $0);}' if not for(i) awk '{printf("%4d %s\n", ++lineno, $0);}' < $i ; sam -d /lib/volcanoes 1,10>nl 1 This nice little file came from the Smithsonian. 2 Doug McIlroy 3 4 SMITHSONIAN INSTITUTION 5 GLOBAL VOLCANISM PROGRAM 6 NHB MRC 119, Washington, DC 20560 7 8 VOLCANOES OF THE WORLD - 1992 9 10 ! - erik