Blair, Would this - if test ! -z $variable; then do stuff fi work and be better then > if test "`echo $variable`" != ""; then > do stuff > fi Notice no "" around $variable. -Dmitry.