Reputation: 7916
Question says it all. I've tried using awk 'BEGIN{RS=\"} /Match/{print $0}' input
and every combination of escaping and quoting I could think of. Any Ideas how to pull this off?
Upvotes: 0
Views: 2948
Reputation: 360683
This also works:
awk 'BEGIN{RS="\""} /Match/{print $0}'
Upvotes: 0
Reputation: 343143
you can use \042.
awk 'BEGIN{RS="\042"}{}' file
or
awk -vRS='"' '{}' file
Upvotes: 3