在 arch wiki 上找到了这个例子
#!/bin/sh case $1/$2 in pre/*) echo "Going to $2..." ;; post/*) echo "Waking up from $2..." ;; esac
并且无法确定它是逻辑运算符还是其他东西。
shell scripting slash
scripting ×1
shell ×1
slash ×1