So I introduce a number to my script, just like this:
./script 795
and I'd like to extract each digit from that number and check if it's smaller than 7. Something like:
if [ 7 -le 7 ]
then
echo "The first digit is smaller than 7"
I'd like to know how to extract each digit.