Shell变量
参考文章:
Shell脚本中变量的使用
shell语法之 , ' ' , {},``, ,'',(),$(())四种语法含义
参考文章:
shell语法之 , ' ' , {},``, ,'',(),$(())四种语法含义

grep常用用法

Shell awk命令详解

grep 跟awk连着用:
获取某程序的pid:
bash
ps -ef | grep "docker" | grep -v grep | awk '{print $2}'
