摘要: 转载一篇讲tty/pty/console的文章http://blog.chinaunix.net/uid-7828352-id-3233064.html 阅读全文
posted @ 2012-06-12 16:19 coldplayerest 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 先mark一下,有时间再看。http://www.ruanyifeng.com/blog/2011/12/inode.htmlhttp://teaching.idallen.com/dat2330/04f/notes/links_and_inodes.htmlhttp://www.thegeekstuff.com/2012/01/linux-inodes/http://blog.chinaunix.net/uid/7828352/frmd/-1.htmlhttp://blog.chinaunix.net/uid-7828352-id-3233062.htmlhttp://blog.chinau 阅读全文
posted @ 2012-06-12 16:18 coldplayerest 阅读(659) 评论(0) 推荐(0) 编辑
摘要: 1. 对一列数据求和awk 'BEGIN {sum=0} {sum+=$1} END {print sum}' data.txt2. 对一列数据求和、求平均值awk -F ',' 'BEGIN {sum=0 ;count=0} {sum +=$5; count++;} END {print "sum="sum" count="count " avg="sum/count}'3. 成批rename文件find * -type f | awk '{print "mv &qu 阅读全文
posted @ 2012-06-12 14:43 coldplayerest 阅读(563) 评论(0) 推荐(0) 编辑