上一页 1 ··· 3 4 5 6 7
摘要: ---源起:[http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=3754423&page=1&extra=#pid22172981](http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=3754423&page=1&extra=#pid22172981) find . -type f ... 阅读全文
posted @ 2017-08-30 22:47 personball 阅读(489) 评论(0) 推荐(0) 编辑
摘要: ---参考[http://bbs.chinaunix.net/thread-2309494-1-1.html](http://bbs.chinaunix.net/thread-2309494-1-1.html)>10.awk ‘! a[$0]++’ 怎么理解? >这是一个非常经典的去重复项的awk语句,虽然短小,不过涉及到了不少知识点,下面一一解读: >:”!” 即非。 >:a[$0],以$... 阅读全文
posted @ 2017-08-30 22:46 personball 阅读(694) 评论(0) 推荐(0) 编辑
摘要: --- $awk -v RS= '{print $1}' testRS 默认值为\n 换行符。 此处设置`RS=` 等效于 `RS=“”` 代表一个空行 (若理解有误请指正,在以下例子中符合) $cat test 1.aaaaaaaa bbbbbbb cccccc 2.ddddddd fffffff eeeeeee 3.zzzzz cccccccc fd $awk -v RS= '{print ... 阅读全文
posted @ 2017-08-30 22:45 personball 阅读(454) 评论(0) 推荐(0) 编辑
摘要: ---参考了[shell十三问](http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=218853&page=7) 以及[http://hi.baidu.com/leejun_2005/blog/item/ebfee11a4177ddc1ac6e751d.html](http://hi.baidu.com/leejun_2005/blog/... 阅读全文
posted @ 2017-08-30 22:44 personball 阅读(250) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7