Table of contents
- ā¢ What is Shell Scripting?
- ā¢ What is #!/bin/bash?
- ā¢ Write a Shell Script which prints " I will complete 90DaysOfDevops challenge "
- ā¢ Write a Shell Script to take user input, input from arguments, and print the variables.
- ā¢ Write an Example of If else in Shell Scripting by comparing two numbers.
Day-4 TASK
ā¢ What is Shell Scripting?
A shell scripts is a list of commands in a computer program that is run by the Unix shell to execute command.
Shell scripting is scripting in any shell usualy bash.
The need of shell scripting is to do automating tasks, simplifying repetitive tasks, configuring systems and services, creating backup jobs, archiving log files, etc.
ā¢ What is #!/bin/bash
?
BASH (Bourne Again SHell) ā It is the most widely used shell in Linux systems. It is used as default login shell in Linux systems and in macOS. It can also be installed on Windows OS.
The #!/bin/bash
known as a shebang, which is define the interpreter to use, each script must begin with the directive for which shell will run them.
#!/bin/bash is a way to specify that the script should be executed by the Bash shell.
you can use ā#!/bin/sh
ā instead of ā#!/bin/bash
ā to specify that the script should be executed by the sh shell.
There is most common shell types are bash, ksh, Csh, Zsh.
ā¢ Write a Shell Script which prints " I will complete 90DaysOfDevops challenge
"
ā¢ Write a Shell Script to take user input, input from arguments, and print the variables.
ā¢ Write an Example of If else in Shell Scripting by comparing two numbers.
_Wow! You are at the end, if it is helpful please do follow ā and like to support.š
_Thank you for reading. š
_Jay