On 14 Jan 2003, Bret Hughes wrote:

> the g/foo/ one I am going to have to read up on before beginning to ask
> a question about it :) 
> 
> Bret

  one of my favorite applications of that operator is to print all
lines containing a pattern while in vi with:

:g/<pattern>/p

as in 

:g/root/p

  the pattern need not be a simple string, it can be a more
sophisticated regular expression (or RE), so in general we
have the usage:

:g/RE/p

  starting to look familiar? :-)

rday



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to