i have only one character to read from a file in UNIX. When i assign the file to a variable and compare with integer it gives integer error.
count.txt contains numeric character. Below is the code
#!/usr/local/bin/bash
_count=/apps/count.txt
_value=20
if [ _value -ge _count ] then
echo "Value is greater"
fi
exit 0