Friday, June 24, 2011

grep character count

Use grep to count the frequency of a character in a file:

grep o 'character' filename | wc -l

No comments:

Post a Comment