ansible遇到的问题及处理方法
摘要:nohup 以及环境变量 ansible,在执行shell脚本的时候,用source ~/.bash_profile;nohup sh app.sh start & , 原因:ansible里如果用linux命令,需要先source ,ansible默认不加载linux的环境变量,所以一般把$HOM
阅读全文
posted @
2018-08-13 17:15
朱传宝
阅读(3821)
推荐(1)
sort--uniq
摘要:sort -u file 消除重复的行 -n 升序,算术排序 -r 逆序 sort -k3n -t: /etc/passwd 以冒号为分隔符,第三个字符进行算术排序 uniq uniq -d file 列出重复的行 uniq -c 统计出现重复行的次数 cat file | sort -n | un
阅读全文
posted @
2018-08-01 15:56
朱传宝
阅读(122)
推荐(0)