Mastering Bash with Tips and Tricks

  • HOME
  • >
  • BASH
  • >
  • Mastering Bash with Tips and Tricks
Last Updated: 
Tags:  bash shell tips

GNU Bash is the GNU shell project with a complete implementation of the IEEE POSIX specification. It is one of the most used command line shell as it comes as default shell with most Linux distributions, is available on MacOS and Windows 10. The version 5 brought a lot of improvement that makes this shell even more powerful, see What's New In GNU Bash 5? for some more insight.

Recommended Reading
Iterate and Check if a Bash Array contains a value
Deep dive into the use of array variables (i.e. lists) and associative arrays (i.e. dictionaries or hash tables) in Bash. This post cover common usages to iterate efficiently over an array and access keys and values.
How to Parse a CSV File in Bash?
All you need to know to avoid the common pitfalls and safely parse a CSV file in Bash. This post cover examples using bash builtins to awk command line.
How to do Math in Bash
Performing Math Calculation in Bash
Find out how to do math with integer and floating-point arithmetic in Bash. We cover addition, substraction, division, multiplication, and also floating-point precision.
Advanced Math Calculation in Bash using GNU bc
Going further with Math and Bash. This post cover advanced usage of GNU bc to do algebra, this include the use of square root, sine, cosine, tangent, arctangent, bessel, and more.
Check those bash Related Posts
What is the Bash Null Command?
Learn about the Bash null command, also known as the POSIX shell colon command. This post cover concrete use cases and pitfalls to avoid.
How To Format Date and Time in Linux, macOS, and Bash?
Find out how to manipulate date and time on linux and macOS systems as well as natively in the Bash shell. This post covers all you need to know to format a date from your shell.
How To Use Option as Meta Key in macOS Terminal?
The Meta Key is a modifier key that can be quite helpful to improve your productivity while working in a terminal and bash. This post cover how to enable from the command line the Meta Key in macOS Terminal.