ZhangZhihui's Blog  
11 2020 档案
  • Sed - search, print, replace
    摘要:Search and print matched lines: scnzzh@ZUBT1:~/zzh$ sed -n '/ExecStart/p' docker.service ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/contain 阅读全文
    posted @ 2020-11-24 11:35 ZhangZhihuiAAA 阅读(104) 评论(0) 推荐(0) 编辑
  • bash - ERROR: binary operator expected
    摘要:scnzzh@ZUBT:~re=[09]+' scnzzh@ZUBT:~a=001scnzzh@ZUBT:  b=a12 scnzzh@ZUBT:~if[a =~ $re ]; then echo 'yyy'; fi bash: [: =~: binary operat 阅读全文
    posted @ 2020-11-23 16:33 ZhangZhihuiAAA 阅读(1079) 评论(0) 推荐(0) 编辑
  • Shell - automatically trim
    摘要:zzh@ZZHPC:~a="aaaaaa"zzh@ZZHPC:  echo "a"aaaaaazzh@ZZHPC:  echo aaaaaaazzh@ZZHPC:  b="bbbabbb"zzh@ZZHPC:  echo "$b" bbb aaa aaa 阅读全文
    posted @ 2020-11-13 09:15 ZhangZhihuiAAA 阅读(79) 评论(0) 推荐(0) 编辑

 
点击右上角即可分享
微信分享提示