Mastering Bash with Tips and Tricks

  • HOME
  • >
  • BASH
  • >
  • Mastering Bash with Tips and Tricks
Last Updated: 

GNU Bash is the GNU command-line interface shell project with a complete implementation of the IEEE POSIX specification. It is one of the most used command line shell. It comes as the default shell with most Linux distributions, is available on Mac 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?

Recommended Reading
How to Parse a CSV File in Bash?
Learn how to parse a CSV file in Bash and avoid the common pitfalls. Includes examples using bash builtins and the awk command line.
How to do Math in Bash
Performing Math Calculation in Bash
Learn how to do math arithmetic with integer and floating-point in Bash. Includes addition, subtraction, division, multiplication, and also floating-point precision.
Advanced Math Calculation using bc
Deep dive into the Linux bc command line. This post cover how to use GNU bc to do arithmetic and algebra using square root, sine, cosine, tangent, arctangent, bessel, and more.
Related Blog posts that you may like...
How To Create Simple Menu with the Shell Select Loop?
The select loop is not a regular shell loop. It can be used in Bash to generate a simple menu from which a user can select numbered options.
What is the Right Way to Loop in Bash?
Looping over a list of numbers or words is a building block in shell scripts. Learn how to write Bash loops, including for loop, while loop, and until loop.
What is the Best Way to Count Files in a Directory?
Learn how to count the number of files in a directory using the Linux command line ls, find, and a native bash shell solution with globs and arrays.
5 Mistakes To Avoid For Writing High-Quality Bash Comments
Adding comments in your Bash scripts is necessary to ensure maintainability over time. This post covers 5 Bash comments mistakes to avoid in your shell scripts.