grep -o "string_pattern" filename[.file_extendsion] | wc -l
Created
February 23, 2020 12:59
-
-
Save Dmitry-Kucher/6801ce7422bb25aec5315c0957cadd23 to your computer and use it in GitHub Desktop.
Count all occurrences of pattern in file
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment