shell
xiao千歌
我是谁
我在哪
展开
-
简单shell统计单词
192. Word FrequencyFor example, assume that words.txt has the following content:the day is sunny the thethe sunny is isYour script should output the following, sorted by descending fre原创 2017-10-31 14:11:35 · 1117 阅读 · 0 评论 -
awk中对时间的操作
参考:http://man.linuxde.net/awk#时间函数点击打开链接注意:发现debian的标准iso中awk中没得时间函数,需要apt-get install gawk或者mawk,好像mawk有点问题,以后再看吧https://stackoverflow.com/questions/3684212/using-strftime-function-in-mawk点击打开链转载 2017-10-31 18:13:03 · 1415 阅读 · 0 评论 -
基础匹配
193. Valid Phone Numbers原创 2017-10-31 22:56:39 · 159 阅读 · 0 评论 -
文件内容矩阵转置
194. Transpose FileGiven a text file file.txt, transpose its content.You may assume that each row has the same number of columns and each field is separated by the ' ' character.For exam原创 2017-11-01 00:57:30 · 871 阅读 · 0 评论 -
awk中next用法
195. Tenth LineHow would you print just the 10th line of a file?For example, assume that file.txt has the following content:Line 1Line 2Line 3Line 4Line 5Line 6Line 7Line 8Line 9L原创 2017-11-01 01:10:11 · 2788 阅读 · 0 评论