Created
September 18, 2013 00:56
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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