Differences between revisions 2 and 3

Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:

= Count Frequency of a value =

if you have a stream of numbers and you want to count their frequency:
{{{
some source of numbers | sort | uniq -c
}}}

If you're trying to diagnose what kinds of characters are in a file, especially carriage returns versus new lines, try piping it through the od command:

cat infile | od -c

Count Frequency of a value

if you have a stream of numbers and you want to count their frequency:

some source of numbers | sort | uniq -c

LinuxTips (last edited 2016-03-25 21:27:15 by ChrisSeidel)