Skip to content

Instantly share code, notes, and snippets.

@sathish-io
Created September 18, 2013 00:56
Show Gist options
  • Save sathish-io/6602982 to your computer and use it in GitHub Desktop.
Save sathish-io/6602982 to your computer and use it in GitHub Desktop.
Linux/ How to count occurrences of text in one line of text file
fgrep -o SATHISH file.txt | wc -l
Here, SATHISH is the text to count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment