Name

&

Synopsis

                  & [options] [count]

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, Fourth 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.