Shell Scripting Shift Through Parameters Shift command is a built-in command. Command takes number as argument. Arguments shift down by this number.…
scripting
-
-
Shell Scripting Sourcing a config file Many programs use external configuration files. Use of external configuration files prevents a user from making…
-
Shell Scripting Sourcing a file A file is sourced in two ways. One is either writting as source <fileName> or other is…
-
Shell Scripting Tutorial Shell Scripting tutorial provides basic and advanced concepts of Shell Scripting. Our Shell Scripting tutorial is designed for beginners…
-
Shell Scripting for loop The for loop moves through a specified list of values until the list is exhausted. 1) Syntax: Syntax…
-
Shell Functions With the help of functions, overall functionality of a function can be divided into smaller or logical parts, which can…
-
Shell Scripting Variables Scripts can contain variables inside the script. Look at the above snapshot, two variables are assigned to the script…
-
Shell Scripting getopts options The getopts options are used in shell scripts to parse arguments passed to them. When arguments are passed…
-
Troubleshooting a shell script There is one more way other than script execution to run a script in a different shell. Type…
-
Steps to write and execute a script Open the terminal. Go to the directory where you want to create your script. Create…