[leetcode-shell]192-统计词频

来源:力扣 (LeetCode) 链接:https://leetcode-cn.com/problems/word-frequency 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 一、题目描述 写一个 bash 脚本以统计一个文本文件 words.txt 中每个单词出现的频率 ... 阅读更多

[leetcode-shell]195-第十行

来源:力扣 (LeetCode) 链接:https://leetcode-cn.com/problems/tenth-line 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 一、题目描述 给定一个文本文件 file.txt,请只打印这个文件中的第十行。 示例: 假设 file. ... 阅读更多