1.编写Shell脚本 #!/bin/bash 脚本声明 【必写】 2.判断用户脚本 3.if条件测试语句 转载于:https://www.cnblogs.com/zjhhzs/p/11520722.html