Shell Tips! is my personal Tech Blog about Shell scripting tips, Bash, Linux, programming, scaling large production systems, and more. I wrote on this blog since 2006, mostly for fun, to share acquired knowledge or consolidate various lessons learned. Check below for a sample of recent posts, and don't hesitate to reach out to me to share your thoughts or suggest improvements!
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.
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.
No-hassle! Learn how to run Bash on Windows by installing your favorite Linux distribution natively on Windows 10 using Windows Subsystem for Linux, aka WSL.
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.
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.