Skip to main content
The 2024 Developer Survey results are live! See the results
1 vote

grep pattern to find word in code

Using any POSIX awk given just the sample input you provided (I won't try to guess what other combinations of code structures you might have): $ awk ' { orig=$0; gsub(/"[^"]*"/,&...
Ed Morton's user avatar
  • 32.5k

Only top scored, non community-wiki answers of a minimum length are eligible