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]
- sh script Q Mike Almogy
- Re: sh script Q Oleg Goldshmidt
- Re: sh script Q Vadim Vygonets
- Re: sh script Q Chmouel Boudjnah
- Re: sh script Q Ariel Biener
- Re: sh script Q Alexander L. Belikoff
- Re: sh script Q Vadim Vygonets
- Re: sh script Q Gaal Yahas
- Re: sh script Q Vadim Smelyansky
- Re: sh script Q Oleg Goldshmidt
- Re: sh script Q Vadim Vygonets
- Re: sh script Q Vadim Vygonets