Running things in parallel in bash scripts may seem like a difficult task, but thanks to great utility programs that are available out-of-the-box on most GNU/Linux distributions it is not. In this brief article, I would like to focus on using xargs to run operations in parallel in a convenient manner. This is an approach … Continue reading "Bash Tips #5 – Parallelism using xargs"
Read MoreDay: January 30, 2023
Bash Tips #4 – Error Handling in Bash Scripts
There is no single way to handle unexpected behavior in our bash scripts. By default, bash simply ignores any failed calls and proceeds with the execution. Therefore we have to explicitly implement behavior that would help us handle such events. I would like to present a few simple techniques that can be used in these … Continue reading "Bash Tips #4 – Error Handling in Bash Scripts"
Read More