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
阅读全文
bash - ERROR: binary operator expected
摘要:scnzzh@ZUBT:~
re=′[0−9]+' scnzzh@ZUBT:~
a=001scnzzh@ZUBT: b=a12 scnzzh@ZUBT:~
if[a =~ $re ]; then echo 'yyy'; fi bash: [: =~: binary operat
阅读全文