Skip to content

Instantly share code, notes, and snippets.

@willread
Created November 23, 2012 02:30
Show Gist options
  • Save willread/4133768 to your computer and use it in GitHub Desktop.
Save willread/4133768 to your computer and use it in GitHub Desktop.
Count the occurences of a phrase in a file
grep -oh something ./some.file | wc -w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment