#with this u can check if command exists #!/bin/bash if type "$1" >/dev/null 2>&1 then echo "Command exists"; else echo "Command not exists"; fi
#with this u can check if command exists #!/bin/bash if type "$1" >/dev/null 2>&1 then echo "Command exists"; else echo "Command not exists"; fi