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)