Shell Scripting Tutorials-29: The ‘if-then-else’ Statement
82.3K views on YouTube
In this tutorial you’ll learn to use the ‘if-then-else’ statement to make decisions for you. The script made in the previous tutorial is extended to display an error message in the event of failure of the rename command.