if..else..fi allows to make choice based on the success or failure of a command. For example, find out if ...
bash.cyberciti.biz