How to Compare Numbers, Strings and Files in Bash Shell Script

In this tutorial on Bash scripting, we are going to learn to do comparisons. We will be discussing numeric, strings & file comparisons in a Bash script. Comparisons in a script are very useful & one of the most used statements, and we must know how we can use them to our advantage.