On 16-02-17 at 19:21, meino.cra...@gmx.de wrote:
> Hi,
> 
> curious about how that had felt in ancient times, when hardware
> and software were limited, I tried 'ed' - the one and only
> editor ;)
>
> One feature I cant figure out (and the reason for that may be, that it
> is not there... :) is:
> 
> One has to specify the line, which s/he wants to edit. This is
> possible via regexp (which matches more than one line and may be
> not, what you want) and via line numbers.
> 
> In case one wants to use line numbers:
> One can list the whole text to the console...but the line numbers
> are missing.
> The "visual version of ed" called 'vi' is able to preceed any line 
> with a line number.
> 
> Is this possible with ed?
> How does one know the number of a specific line?
Use %n instead of %p

`info ed' is your friend

-- 
Simon Thelen

Reply via email to