Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望在 bash 中的一个命令中执行此操作:
[[ -f ./${SQLITE} ] || [ -f /tmp/${SQLITE} ]]
还不知道该怎么做....在两个地方查找文件...在一个命令中。
你有一个额外的],[这是不需要的:
]
[
[[ -f ./${SQLITE} || -f /tmp/${SQLITE} ]]