Bash and Scripting
Basics
Use the following to define the interpreter to be used by the shell script (bash in our case):
Arguments variables that are passed to the script. These are also called parameters $0 - the name of the script $1 - first parameter from the script $2 - second parameter from the script and so on
Example Script
See the example script below - script checks the IP with a ping
command:
If Statements*
For Loops
While Loops
Case Statements
Last updated
Was this helpful?