bash
文章平均质量分 65
youngsend
这个作者很懒,什么都没留下…
展开
-
Leetcode: Transpose File (shell, awk)
考察awk。先贴代码(我把我内存超限的算法注释掉了):# Read from the file file.txt and print its transposed content to stdout.#!/bin/bash#i=1;#value=$(cat file.txt);#j=$(echo "$value" | awk 'NR==1{print NF}');#while [ $i -l原创 2015-05-28 17:36:11 · 574 阅读 · 0 评论 -
Leetcode: Word Frequency (shell , awk)
单词统计。仍然先贴代码,再讲我的思路:原创 2015-05-28 23:01:25 · 869 阅读 · 0 评论