How can I check if a command exists in a shell script?
6958
How can I check if a program exists from a Bash script?
3358
What's the best way to check if a file exists in C?
25487
How to store a command in a variable in a shell script?
144952
How to make sure only one instance of a bash script runs?
25534
Checking if a directory exists in Unix (system call)
57226
What is the syntax for IF/ELSE in bash?
141259
shell scripting if statement doesn't work
88673
if...else...if statement (command not found error)
76077
if command in find -exec
23208
How can I check if a file exists in Perl?
59353
How to tell if a command executed by `exec` runs successfully or not?
148523
How to check whether operator== exists?
67636
How to check the extension of a filename in a bash script?
17361
How to check if a string has spaces in Bash shell
149765
Change the Ubuntu program that runs when a command can't be found
43775
Checking the success of a command in a bash `if [ .. ]` statement
144704
How to conditionally do something if a command succeeded or failed