June 2004
Intermediate to advanced
1056 pages
39h 58m
English
global
[address] g[!]/pattern/[commands]
Execute
commands on all lines that contain
pattern or, if
address is specified, on all lines within
that range. If commands
aren’t specified, print all such lines. If ! is
used, execute commands on all lines that
don’t contain pattern.
See v.
:g/Unix/pPrint all lines containing "Unix" :g/Name:/s/tom/Tom/Change "tom" to "Tom" on all lines containing "Name:"
Read now
Unlock full access