#!/bin/bash -x. $HOME/.bash_profilevar=POJ_2 versionNumber=${var:4:1} if [ "$versionNumber" = "1" ]; then echo "Project 1"elif [ "$versionNumber" = "2" ]; then echo "Project 3"else echo "sorry I don't know!" exit 0fi
本文共 270 字,大约阅读时间需要 1 分钟。
#!/bin/bash -x. $HOME/.bash_profilevar=POJ_2 versionNumber=${var:4:1} if [ "$versionNumber" = "1" ]; then echo "Project 1"elif [ "$versionNumber" = "2" ]; then echo "Project 3"else echo "sorry I don't know!" exit 0fi
转载于:https://my.oschina.net/xwl1990/blog/83218