Home ›
Compare two strings in a bash scriptCompare two strings in a bash script
Submitted by Benjamin Melançon on December 7, 2009 - 5:51pm
bash script compare text
if [ $var == "value" ]
then
echo is the same
fi
http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/
(Numbers are -eq)
Comments
Post new comment