.sh作为后缀 在shell脚本里第一行要以 “#! /bin/bash” 开头,它代表的意思是,该文件使用的是bash语法 执行方法 : ./shell.sh sh ./shell.sh source./shell.sh