How to check if a program exists from a Bash script
You can use the command line utility “which” to check if a program exists from a Bash script. For example, to check if the program “foo” exists, you can use the following command: which foo If the program exists, the output will be the full path to the program. If the program does not exist, … Read more