EXPRESSIONS CONDITIONNELLES CONDITIONAL EXPRESSIONS

Pour effectuer un test, deux syntaxes: test expr cond ou [expr cond].

par exemple:

if test -b /dev/fd0 ; then echo fd0 is a block device;fi

if [ -b /dev/fd0 ] ; then echo fd0 is a block device;fi

voir ``help test''.

Félix Hauri 2004-06-23