I'm reading a number from a file using
x= egrep "(^[0-9][0-9])" temp1
but when I use these numbers in a case statement it always fails:
case $x in
[0-9])
statements;;
[0-9][0-9]
statements;;
esac
when I echo the number it looks fine, I'm not sure why it is not working.