Skip to content

Instantly share code, notes, and snippets.

@yashprit
Last active August 29, 2015 14:03
Show Gist options
  • Save yashprit/ca1a53ba81d6c00bee6b to your computer and use it in GitHub Desktop.
Save yashprit/ca1a53ba81d6c00bee6b to your computer and use it in GitHub Desktop.
Shell Learning, small utility
Using tr for separating words and then grep and wc seems possible :
tr -s ' ' '\n' < file.txt | grep file | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment