Monday, November 22, 2010

Unix IF

File not exist

if [ ! -f filename ]
then
echo file does not exit
fi

Test variable
a=1
if [ $a == 1 ]
then
echo true
else
echo false
fi


No comments:

Post a Comment