Welcome to Bash Tutorial!
Bash commands
Bash is indispensable tool for every software developer. Master it with these short, easy to follow lessons:
Control flow
- Bash case statement
Learn to process complex conditionals using case statement! - Bash if else
Learn the most fundamental control flow element in Bash!
Arrays and variables
- Bash array
Learn to use arrays from bunch of examples!
Loops
- Bash For Loop
Where you will iterate over different shell things! - Bash until loop
Learn to use twin of while loop! - Bash while loop
Learn to iterate over an array of elements it a different way!
Reading user input
- Bash script parameters
Examples of processing script parameters using while-case and getopts! - Bash select
Learn how to write interactive scripts! On examples!
Generating output
- Bash Here Documents
Where you will learn about powerful templating mechanism!
Writing Functions
- Bash Define Function
Where you will learn how to define reusable pieces!
Other useful things to know
- Bash Command Alias
Is the place to learn how to make commands short!
GNU/Linux/U*nix commands
- cut lines into pieces
How to display only parts of lines. - head and tail by example
How to display selected lines from a text file.
References:
- Bash Reference Manual is comprehensive, but hard to read