cancel
Showing results for 
Search instead for 
Did you mean: 

shell grep

Bjay
Advisor

shell grep

I have tesx file now I want to grep only that part of the file which is in " " quotes in the file how can I do that any help
2 REPLIES
Steven Schweda
Honored Contributor

Re: shell grep

This could be easy or more difficult,
depending on exactly what's quoted in the
file. Can you provide a sample?
Dennis Handly
Acclaimed Contributor

Re: shell grep

Do you have multiple quote parts on each line?
You could do:
grep '".*stuff.*"' file
But this would find stuff1 and stuff2:
not here " stuff1 " but not stuff2 " more "