2012年(6)
分类: LINUX
2012-04-24 21:26:13
if [ cond1 -a cond2 ];thendo something;elif [ cond1 ] && [ cond2 ]thendo something;elsedo something;fi;
if [ cond1 -o cond2 ];thendo something;elif [ cond1 ] || [ cond2 ]thendo something;elsedo something;fi;
if [ ! cond1 ];thendo something;elsedo something;fi;