MySQL/MariaDB database daily backup

Yuram has shown some keen interest in Bash scripting recently. He even took the Bash Cookbook from me to enrich his knowledge. To keep the spirit I often ping him with small challenges. While having
Read More ›


Bash – for loop

Say you have some PHP files and you need to replace the .php extension with .html. The “for” loop in bash comes handy to do this task. However, prior to renaming we need to strip
Read More ›



While True

On Solaris servers I’ve missed the ‘watch’ command. Mostly when you have filesystems filling up fast. The ‘watch’ command nowadays comes bundled with most distros but not on those proprietary systems. I had to
Read More ›


Bash - the while loop

The Bash while loop. Print ‘this is a test’ 10 times. #!/bin/bash x = "0" while [ $x -lt 10 ] do echo 'this is a test' x = $[$x + 1] done
Read More ›