Skip to content

Instantly share code, notes, and snippets.

@georgeportillo
Created May 9, 2017 20:31
Show Gist options
  • Save georgeportillo/a122d5a6f5df66436f4603b09a8e6469 to your computer and use it in GitHub Desktop.
Save georgeportillo/a122d5a6f5df66436f4603b09a8e6469 to your computer and use it in GitHub Desktop.
find . -maxdepth 2 | # Find files
grep ".html" | # Grep for all html files
xargs -I % grep "\"solution-apis-used_list_item\"" % | # Search for a string in those files
wc -l # Return number of found instances
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment