What about this:
awk '{print $2}' file1.txt | sort | uniq -c | sort -n | tail -n 1 | awk '{print $2}'
awk '{print $2}'
(the first one) shows only the teamsort
sorts :-)uniq -c
preceeds every word by its frequencysort -n
sorts by number (meaning by frequency)tail -n 1
takes the last one (with the largest frequency)awk '{print $2}'
(the second one) only shows the team name, not the frequency