🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #59

Re: Hacking Edit (short & sweet)

#59
From: Josh Doenias
Date: Thu, 29 Oct 1992 22:26
25 lines
1013 bytes
In article <1992Oct25.043226.2078@news.miami.edu>  
mattocks@tigger.rsmas.miami.edu (Craig A. Mattocks) writes:
>In article <1992Oct24.181323.12689@netcom.com> vin@netcom.com (Vin Locke)  
>writes:
>
>Okay, I have no shame,
>   Here's my (admittedly ugly) way of getting the Edit app to number
>files for you:
[Fortran code deleted]

How about this:

  Stick the following line in your .commanddict file

  Number Lines		grep -n '' $file

  Or the following in your .pipedict

  Number Lines 		grep -n ''

The "-n" flag to grep tells it to print out the linenumber preceeding the  
lines.  By telling it to search for the empty string '', it will print all  
the lines.

-- josh
Technical Details
Message-ID: <5646@rosie.NeXT.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!rosie!next.com
References: <1992Oct25.043226.2078@news.miami.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!rosie!next.com
From: jdoenias@next.com (Josh Doenias)
Newsgroups: comp.sys.next.programmer
Subject: Re: Hacking Edit (short & sweet)
Message-ID: <5646@rosie.NeXT.COM>
Date: 29 Oct 92 22:26:28 GMT
References: <1992Oct25.043226.2078@news.miami.edu>
Sender: news@NeXT.COM
Lines: 25