Re: [gentoo-user] [OT] Retro ...

2016-02-17 Thread Meino . Cramer
Alexander Kapshuk  [16-02-17 20:52]:
> On Wed, Feb 17, 2016 at 9:29 PM,   wrote:
> > Alexander Kapshuk  [16-02-17 20:24]:
> >> On Wed, Feb 17, 2016 at 8:21 PM,   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?
> >> >
> >> > Or do I miss something very fundamental here ???
> >> >
> >> > Thanks for any help in advance!
> >> > Best regards,
> >> > Meino
> >> >
> >> >
> >> >
> >>
> >> You may find this manual, https://9p.io/7thEdMan/v7vol2a.pdf, for
> >> research UNIX 7th edition of interest.
> >> Amongst other things, it has a section called 'A Tutorial Introduction
> >> to the UNIX Text Editor' written by Brian W. Kernighan of Bell Labs at
> >> the time. You may then find a section called 'Advanced Editing on
> >> UNIX' of further interest.
> >>
> >
> > Hi Alexander,
> >
> > THANKS A LOT! 8)
> > That seems to be the "definitive guide to ed" because Brian Kernigham
> > is the author...
> > Looks like you linked me the "Programing C" by Dennis Ritchie - but
> > for the ed and by Brian Kerningham. ;)
> > Best!
> >
> > Best regards,
> > Meino
> >
> > PS: Do you know TUHS??? ;)
> >
> 
> You're welcome. I find the Bell Labs manuals and papers of top
> technical quality.
> No, I haven't heard of The Unix Heritage Society before. Thanks for
> pointing it out.
> 

Hi Alexander,

:) If you are interested in the TUHS then this may be interesting too:
http://simh.trailing-edge.com/
:)
(The needed UNIX-tapes are all archived by the TUHS and the majority of
them are free for private use)

On the mailing list of the tuhs you will find often links to very
interesting docs. May be g/re/p-ping through archived posting of
the newer past will reveal more interesting docs.
One teaser:
http://wiki.tuhs.org/doku.php?id=publications:quarter_century_of_unix

Have a lot of fun!
Best regards,
Meino







Re: [gentoo-user] [OT] Retro ...

2016-02-17 Thread Alexander Kapshuk
On Wed, Feb 17, 2016 at 9:29 PM,   wrote:
> Alexander Kapshuk  [16-02-17 20:24]:
>> On Wed, Feb 17, 2016 at 8:21 PM,   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?
>> >
>> > Or do I miss something very fundamental here ???
>> >
>> > Thanks for any help in advance!
>> > Best regards,
>> > Meino
>> >
>> >
>> >
>>
>> You may find this manual, https://9p.io/7thEdMan/v7vol2a.pdf, for
>> research UNIX 7th edition of interest.
>> Amongst other things, it has a section called 'A Tutorial Introduction
>> to the UNIX Text Editor' written by Brian W. Kernighan of Bell Labs at
>> the time. You may then find a section called 'Advanced Editing on
>> UNIX' of further interest.
>>
>
> Hi Alexander,
>
> THANKS A LOT! 8)
> That seems to be the "definitive guide to ed" because Brian Kernigham
> is the author...
> Looks like you linked me the "Programing C" by Dennis Ritchie - but
> for the ed and by Brian Kerningham. ;)
> Best!
>
> Best regards,
> Meino
>
> PS: Do you know TUHS??? ;)
>

You're welcome. I find the Bell Labs manuals and papers of top
technical quality.
No, I haven't heard of The Unix Heritage Society before. Thanks for
pointing it out.



Re: [gentoo-user] [OT] Retro ...

2016-02-17 Thread Meino . Cramer
Alexander Kapshuk  [16-02-17 20:24]:
> On Wed, Feb 17, 2016 at 8:21 PM,   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?
> >
> > Or do I miss something very fundamental here ???
> >
> > Thanks for any help in advance!
> > Best regards,
> > Meino
> >
> >
> >
> 
> You may find this manual, https://9p.io/7thEdMan/v7vol2a.pdf, for
> research UNIX 7th edition of interest.
> Amongst other things, it has a section called 'A Tutorial Introduction
> to the UNIX Text Editor' written by Brian W. Kernighan of Bell Labs at
> the time. You may then find a section called 'Advanced Editing on
> UNIX' of further interest.
> 

Hi Alexander,

THANKS A LOT! 8)
That seems to be the "definitive guide to ed" because Brian Kernigham
is the author...
Looks like you linked me the "Programing C" by Dennis Ritchie - but
for the ed and by Brian Kerningham. ;)
Best!

Best regards,
Meino

PS: Do you know TUHS??? ;)



Re: [gentoo-user] [OT] Retro ...

2016-02-17 Thread Alexander Kapshuk
On Wed, Feb 17, 2016 at 8:21 PM,   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?
>
> Or do I miss something very fundamental here ???
>
> Thanks for any help in advance!
> Best regards,
> Meino
>
>
>

You may find this manual, https://9p.io/7thEdMan/v7vol2a.pdf, for
research UNIX 7th edition of interest.
Amongst other things, it has a section called 'A Tutorial Introduction
to the UNIX Text Editor' written by Brian W. Kernighan of Bell Labs at
the time. You may then find a section called 'Advanced Editing on
UNIX' of further interest.



Re: [gentoo-user] [OT] Retro ...

2016-02-17 Thread Meino . Cramer
gentoo-u...@c-14.de  [16-02-17 19:32]:
> 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
> 

Hi Simon,

OH! Flat-hand-against-my-fronthead-effect...

YES! ...info... I forget that completly.

Thanks a lot for refreshing my brain ;)

Best regards,
Meino





Re: [gentoo-user] [OT] Retro ...

2016-02-17 Thread gentoo-user
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