I have two variables and want to perform some functions after comparison
$cat file1
14.abcde
a=`cut -f 1 -d "." file1
b=15
if [ $a -lt $b ]
then
....
fi
but i got an error message says that unary operator expected
and i think its because of $a is a string and trying to compare with integer variable.
Can someone help me to fix this ??