How to check if command exists in a shell script? - Stack ...

How to check if command exists in a shell script? - Stack ...

瀏覽:328
日期:2025-09-30
2011年9月22日 - In general, that depends on your shell, but if you use bash, zsh, ksh or sh (as provided by dash), the following should work: if ! type ......看更多