Sample Header Ad - 728x90

Most Frequent Word in a Text

1 vote
2 answers
503 views
# Task The parameter here is a filename! The file contains a text. The task of the script is to decide which word is contained most frequently in other words. *** # Example Input And Output (e.g. the text is: play ball football basketball snowball - therefore ball is the winner because it is part of three other worlds). *** # My code sofar I did this code so far, but it doesn't work for every output
!/bin/sh
awk '{for(i=2;i
Asked by user405815
Apr 12, 2020, 09:44 PM
Last activity: May 10, 2020, 10:09 AM