Name

&

Synopsis

& [options] [count]

Description

Repeat the previous substitution (s) command. count specifies the number of lines on which to substitute, starting with address.

Examples

:s/Overdue/Paid/    
                     Substitute once on current line
:g/Status/&         
                     Redo substitution on all "Status" lines

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.