Sed - sed: -e expression #1, char 28: unknown option to `s'
摘要:The problem is with slashes: your variable contains them and the final command will be something like sed "s/string/path/to/something/g", containing w
阅读全文
Shell - shebang line
摘要:The shebang must be the first line, because it is interpreted by the kernel, which looks at the two bytes at the start of an executable file. If these
阅读全文
Shell - grep stderr output
摘要:scnzzh@ZUBT:~$ ansible -i zzh-inventory all --list-hosts | grep WARNING | wc -l [WARNING]: * Failed to parse /home/scnzzh/zzh-inventory with yaml plug
阅读全文