https://www.cnblogs.com/37yan/p/6962563.html caution!!! if should be end with fi caution!!! there should be a space between [ and ! , also between 1 and ] if [ ! $# -eq 1 ];then #!/bin/bash # 判断传入的参数的个数是不是一个 ];then echo param error! exit fi # 判断目录是不是…