Skip to content

Instantly share code, notes, and snippets.

@leberblock
Created August 27, 2012 09:19
Show Gist options
  • Save leberblock/3486867 to your computer and use it in GitHub Desktop.
Save leberblock/3486867 to your computer and use it in GitHub Desktop.
bash: count amount of "|" in a file
grep "20513754200" 11001104.txt | grep -o "|" |wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment