摘要:
写一个 bash 脚本以统计一个文本文件 words.txt 中每个单词出现的频率。 为了简单起见,你可以假设: words.txt只包括小写字母和 ' ' 。每个单词只由小写字母组成。单词间由一个或多个空格字符分隔。示例: 假设 words.txt 内容如下: the day is sunny t 阅读全文
摘要:
k8s的很多yaml的配置文件中,很多地方执行bash命令时 要加上 -c 。 bash手册中对其解释 -c string If the -c option is present, then commands are read from string. If there are arguments 阅读全文