Shell Scripting Tutorial: Special Operators
In this chapter we shall know about some special operators, which makes shell script powerful while writing and executing the scripts. 4.1. Redirectors 4.2. Pipes 4.3. exit status 4.4. Shell Special Variables 4.5. eval command 4.6. sleep command 4.7. trap command 4.1. Redirectors Usually we give input to the script from standard input [STDIN] and […]
Shell Scripting Tutorial: Shell Script reading from user input and passing arguments to bash script.
To read an input from the user, use the “read” command. The read command will take the input from the user and assigns to a variable. Syntax: read <variable_name> example: read website_name read -p option: If you want to display a help text to the user, then use “-p” option. Example 1: read -p “Enter […]
Shell Scripting Tutorial: Shell Script Variables
In shell script there is no need to declare a variable before using it. A variable is a name given to memory location, which is used to store a value. The value can be accessed by variable name for further manipulation. In this chapter we shall look at below topics: 2.1 How to set a […]
Shell Scripting Tutorial: Introduction to shell script
In this introduction chapter, we shall look at below topics 1.1 Now what is a shell script? 1.2 what are the uses of shell script? 1.3 How to create a shell script? 1.4 Writing your first shell script 1.5 How to execute a script? 1.6 Shell Comments 1.7 The “echo” command 1.8 Colouring the output […]