Bash Scripting Tutorial for Beginners - LinuxConfig.org

I figured it out:
let "((b=4*($a-1)))"

1 Like

Thank you for writing such a great tutorial, I can’t wait to share it with my friends!

Great tutorial. Thank you. Two small corrections:
if [ $num_a -lt $num_b ]; then
echo β€œ$num_a is less than $num_b!”
else
echo β€œ$num_a is greater than or equal to $num_b!”
The function definition ends on Line 57after which we have implemented a new for loop on Lines 59 – 61 to execute the newly defined backup function for each user directory supplied as an argument.