bash 与列表(&&)

#!/bin/bash
#and list

if [ ! -z "$1" ]&&echo "argument #1=$1"&&[ ! -z "$2" ]&&echo "argment #2=$2"
then
echo "at least 2 argumnets passed to script."
else
echo "less than 2 arguments passed to script."
fi

posted @ 2010-05-28 17:14  waynechen  阅读(380)  评论(0编辑  收藏  举报