Info
Content
Comparisons
Numerical, String, and File Comparisons reference page.
File Comparisons
File Comparisons -d Checks if file exists and is a directory if [ -d $file ]thendo_somethi...
String Comparisons
String Comparisons str1 = str2 Checks if str1 is the same as str2 if [ $str1 = $str2 ]the...
Numeric Comparisons
Numeric Comparisons The most common test evaluation methods perform a comparison of two numerica...
Advanced Comparisons
Double Parentheses The double parentheses command allows you to incorporate advanced mathematica...
Double Brackets [[
Pattern Matching The double bracket command provides advanced features for string comparisons, p...