FunctionRacerProblemsRace

The Most Common Word

MediumBasha shell script

words.txt has one word per line. Print the word that appears most often: the word alone, without its count.

Example 1

words.txt
tea
milk
tea
egg
tea
milk
prints
tea

Constraints

Race itor take your time

Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.

More Bash problems