Terminal Exercises
Help 12 / 25
Pipes and Filters

Which pipe?

Consider the file exercise-data/animal-counts/animals.csv:

2012-11-05,deer,5
2012-11-05,rabbit,22
2012-11-05,raccoon,7
2012-11-06,rabbit,19
...

The uniq command has a -c option which gives a count of the number of times a line occurs in its input.

Loading...