Name

print

Synopsis

[address] p [count]

[address] P [count]

Description

Print the lines specified by address. count specifies the number of lines to print, starting with address. Add a ! to discard any changes to the current file.

Example

:100;+5p     
                     Show line 100 and the next 5 lines

Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.