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
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
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
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
---------------
starX
www.axisoftime.com
I suck at the Vi, but with grep, just do "egrep 'boy.*boy'".