SSH K8S Pods 命令
|
|
Double Dash
Double Dash 之后的参数不作为 option,而视为 positional parameter。
|
|
上述命令中,grep 将匹配 –hello,而不是将其作为 option。
Single Dash
|
|
bash 末尾的 Dash 会让 bash 读取 stdin,即前面 curl 的输出内容。
|
|
Double Dash 之后的参数不作为 option,而视为 positional parameter。
|
|
上述命令中,grep 将匹配 –hello,而不是将其作为 option。
|
|
bash 末尾的 Dash 会让 bash 读取 stdin,即前面 curl 的输出内容。