 |
|
binarywizard
V2EX member #83412, joined on 2014-11-24 11:00:05 +08:00
|
binarywizard's recent replies
正在看《 Redis 设计与实现》,键值对的存储思路确实相对于关系数据库的设计很能发人深省,更关注存储本身,更回归自然思维,也更简洁有力。
非常感谢!鼠标垫收到了!都忘了这事儿,快递发短信来我愣了半天。。。
cd /opt/soft/nginx/conf || cd /usr/local/nginx/conf && for file in `cat nginx.conf | grep 'include' | grep -Ev '^ *#|mime\.types' | tr -d ';' | awk '{print $2}'`; do echo $file | tr -d '\r' | (while read arg; do ls $arg; done); done | grep -v 'data\.xxx\.xxx\.com' | sed '$a nginx.conf' | xargs cat | tr -d '\r' | grep -E '^[[:space:]]*server[[:space:]]+.*;$' | awk '{print $2}' | sort | uniq
一行命令,都不知道单独搞个脚本。。。