Here is a YouTube computer tutorial about Avoid If Satements in Bash Scripts Heres Why, and is part of a growing collection of videos I have found which should be useful to you for avoiding inefficient code in Bash scripts especially if statements. There are thousands of YouTube computer tutorials out there, but this is a good one when you need avoiding inefficient code in Bash scripts especially if statements.
This tutorial, "Avoid If Satements in Bash Scripts Heres Why" is a free tutorial you can watch, which will help you understand how to get better performance, usability, and an overall better experience using your laptop or desktop computer.