I need to resolve the if check as the field contains two values, and is causing a syntax error.
A noddy test script was set up and your help is appreciated
thanks
madra
The script:
#!/bin/ksh
BLAH="12345 67890"
if [[ BLAH -eq "" ]]
then
echo "oh no not me"
else
echo "no its me"
fi
the error:
dunsdev:/usr/local/getronics/bin # ./dogtest.ksh
./dogtest.ksh[5]: 12345 67890: 0403-057 Syntax error
I only ask stupid questions because I'm thick
A noddy test script was set up and your help is appreciated
thanks
madra
The script:
#!/bin/ksh
BLAH="12345 67890"
if [[ BLAH -eq "" ]]
then
echo "oh no not me"
else
echo "no its me"
fi
the error:
dunsdev:/usr/local/getronics/bin # ./dogtest.ksh
./dogtest.ksh[5]: 12345 67890: 0403-057 Syntax error
I only ask stupid questions because I'm thick