[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh script Q



Mike Almogy <lizard@macam98.ac.il> writes:

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

[ "$PARAM" != "SOMETHING" ] || {
        ACTION3
        ACTION3
;}

info test is your friend.

-- 
MandrakeSoft	      http://www.mandrakesoft.com
					--Chmouel