I have those lines in a file:
:startStr xxxxxxx(anything) STRING1 xxxxxx
startStr xxxxxxx STRING1 xxxxxxxxxxxxx
startStr xxxxxxxxx STRING2 xxxxxxxx
.......
grep only the lines starting "startStr" (without ":") & with "STRING1"
-e.g. the second line in the above file
I use the following which works but how to also include the "startStr"??
grep '^[^:]*STRING1' *
Thanks!!