we will understand shell decision-making in Unix. While writing a shell script, there may be a situation when you need to adopt one path out of the given two paths. So you need to make use of conditional statements that allow your program to make correct decisions and perform the right actions. The if…else statements […]
Category: Shell Scripting
Shell Scripting
1. Shell Scripting Introduction
How to execute the script? use ./script-name.sh else can do sh script-name.sh for Bourne shell else bash script-name.sh for Bourne again shell execution. This does not matter which shell you use sh or bash as for normal scripts it will have same output, this is needed when you want specific shell to run your script. […]