shell 带参数选择的写法

!/bin/bash

echo
while [ -n "1" in
-a) param="1,2"
echo "2"
shift;;
*) echo "wrong"
break;;
esac
shift
done

你可能感兴趣的:(shell 带参数选择的写法)