统计词频

写一个 bash 脚本以统计一个文本文件 words.txt 中每一个单词出现的频率。web 为了简单起见,你能够假设:bash words.txt只包括小写字母和 ’ ’ 。 每一个单词只由小写字母组成。 单词间由一个或多个空格字符分隔。 示例:svg 假设 words.txt 内容以下:xml the day is sunny the the the sunny is is 你的脚本应当输出(
相关文章
相关标签/搜索