Bash Exit Command and Exit Codes
In this article, we will cover the Bash exit built-in command and the exit statuses of the executed commands.
How to Redirect stderr to stdout in Bash
To redirect stderr and stdout, use the 2>&1 or &> constructs. In Bash and other Linux shells, when a program is executed, it uses three standard I/O streams.
Bash printf Command
The printf command takes a format and arguments and prints a formatted text. printf is a shell builtin in Bash.
Bash Sequence Expression (Range)
The Bash sequence expression generates a range of integers or characters by defining a start and the end point of the range. It is generally used in combination with for loops.