Sei sulla pagina 1di 1

if (test $string = $string ) then echo Strings are equal. else echo Strings are not equal.

. Expected fi Each space can be very important when comparing text strings. Note also how empt y strings have zero lengths: if (test -z $notset) then echo Length of \$notset is zero. Expected. else echo Length of \$notset is NOT zero. fi

Potrebbero piacerti anche