David Kempe wrote:
Craig Ayliffe wrote:

David,

Try echo'ing out the variable in angle brackets to see if it has a new line.

ie echo "<$ERRORNUM>"

If you get:
----------
<54

----------
Then you have a newline obviously.

You could always use 'tr' to delete the newline:
    $ERRORNUM=`echo $ERRORNUM | tr --delete '\n'`
Might want test that first tho.

Even simpler: $ERRORNUM=`echo -n $ERRORNUM` (untested ;-) )

--
Pete
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to