``<tt>p</tt>" Print Line(s)



next up previous contents
Next: ``d;; Delete Up: ``ed;; Editor Previous: ``.;; Current Line

``p" Print Line(s)

[line_b[,line_e]]p
where line_b and line_e are respectively the beginning line and the end line to be displayed. line_b must be smaller than line_e.

So, to print (display) lines 3 to 6, one would use

3,6p

The line numbers are optional. If no line numbers are given, the current line will be displayed.

To display only one line, the command is simply

nump

A dollar sign ($) is used to represent the last line number. Hence, to display lines 6 to the end of the file, type

6,$p

NOTE: the l command is similar to p with the addition that it displays non-printable characters.



Super-User
Fri Feb 17 15:55:40 EST 1995