Search Results

Search: Posts Made By: Scott
2,412
Posted By Scott
-eq is used for numeric comparisons. = should be...
-eq is used for numeric comparisons. = should be used to string comparisons. You should also quote variables in a test.

i.e.

if [ "$var" = EASY ]; then
...
fi
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 03:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy