linux/mac脚本语言总结
1. 命令行传参, 条件语句
if [[ $1 = "happy" ]]; then echo "I'm happy" else echo "I'm not happy" fi
效果:
黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/
1. 命令行传参, 条件语句
if [[ $1 = "happy" ]]; then echo "I'm happy" else echo "I'm not happy" fi
效果: