Could anybody tell me how to do this in Unix using vi:
In the file "sue" use grep to print to screen all lines containing
the word "boy" twice, i.e.
"boy, life ain't easy for a boy named sue."
Thanx in advance
Printable View
Could anybody tell me how to do this in Unix using vi:
In the file "sue" use grep to print to screen all lines containing
the word "boy" twice, i.e.
"boy, life ain't easy for a boy named sue."
Thanx in advance
Seems a little off topic
How about
boy.*boy
I don't know about vi, but I know that ex (which drives vi) has script and (I think) regex capabilities.
starX
www.axisoftime.com
I suck at the Vi, but with grep, just do "egrep 'boy.*boy'".