Mike Almogy <[EMAIL PROTECTED]> writes:

> Does any one know how can i check if a varible contain any data ,using
> sh script.
> 
> something like if ($param ne ""){....} in perl.

man test?

E.g. 

if [ "$PARAM" != "" ]
   then ...
   else ...
fi

or

if [ -z "$PARAM" ]
   then ...
   else ...
fi

Constructs like ${parameter:?word} (man bash) may also be useful.

Hope it helps.

-- 
Oleg Goldshmidt          [EMAIL PROTECTED]   
BLOOMBERG L.P. (BFM)     [EMAIL PROTECTED]

Reply via email to