摘要:
1. 切换到应用的docker-compose.yml目录下 [root@test-linux yun_web]# ls |grep docker-compose.yml docker-compose.yml [root@test-linux yun_web]# grep -A2 ports doc 阅读全文
摘要:
sed 后接入双引号,可直接调用内部变量,需要时可以这样使用,但一般不建议 sed 和awk引入外部变量时,需要使用三引号,格式为三个单引号,或者单引号内套一个双引号!!! grep就不说了,grep默认可以直接读取变量 [root@controller ~]# cat test.txt12c45f 阅读全文