摘要: use arcd srcar -cvq libprotobuf.a *.o 阅读全文
posted @ 2014-05-27 18:05 Daniel King 阅读(434) 评论(0) 推荐(0) 编辑
摘要: get current thread count grep -s '^Threads' /proc/[0-9]*/status | awk '{ sum += $2; } END { print sum; }'get the system thread limitcat /proc/sys/kernel/threads-max 阅读全文
posted @ 2014-05-27 15:02 Daniel King 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 1. remove temporary files, only used for test purpose. ls | sed -e "/^term.sh$/d" | sed -e "/^test.cpp$/d" | sed -e "/^Makefile.am$/d" | sed -e "/^aut... 阅读全文
posted @ 2014-05-27 11:34 Daniel King 阅读(202) 评论(0) 推荐(0) 编辑
摘要: if we want to filter with sed pattern and just print the filtered lines without any further editing , we can do it like thisls -a1 ~ | sed -ne "/^\./p... 阅读全文
posted @ 2014-05-27 10:31 Daniel King 阅读(252) 评论(0) 推荐(0) 编辑