Dennis' Tech Crib Sheets
How to compare a string in unix
$STRING="XYZ";
if
[
"$STRING"
==
"ABC"
]
then
echo
"Match"
else
echo
"No Match"
fi
Newer Post
Older Post
Home