sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit daec4db8a3611927158611f3b0cbc082b4673e28
parent 8227fbab2e1209bf68125e19d366ffacdc2071d2
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Sat, 13 Dec 2025 11:14:15 +0100

ed: Improve man page

Add missing z command, give more bibliography and clarify
some of the commands.

Diffstat:
Med.1 | 36+++++++++++++++++++++++++++++++++++-
1 file changed, 35 insertions(+), 1 deletion(-)

diff --git a/ed.1 b/ed.1 @@ -214,8 +214,16 @@ the addressed lines are appended to .Ar file instead. .It (.+1) -Print the addressed line. +An address without a command prints the addressed line. Sets the dot to that line. +.It (+) Ns Ic z Ns Ar n +Scrolls +.Ar n +lines starting at the addressed line. +If +.Ar n +is not specified then +it is defaulted to 24. .It ($)= Print the line number of the addressed line. The dot is unchanged. @@ -238,7 +246,33 @@ The dot is unchanged. .Sh SEE ALSO .Xr sed 1 , .Xr regexp 3 +.Rs +.%A B. W. Kernighan +.%T A Tutorial Introduction to the UNIX Text Editor +.Re +.Rs +.Rs +.%A B. W. Kernighan +.%T Advanced Editing on UNIX +.Re +.Rs +.%A B. W. Kernighan +.%A P. J. Plauger +.%B Software Tools +.%O Addison-Wesley +.%D 1976 +.Re +.Rs +.%A B. W. Kernighan +.%A P. J. Plauger +.%B Software Tools in Pascal +.%O Addison-Wesley +.%D 1981 +.Re .Sh STANDARDS POSIX.1-2013. Except where noted here: g and v operate on single commands rather than lists delimited with '\e'. +The command +.Cm z +is an extension to that specification.