1、新建sh文件
$ touch myls.sh
2、
$vi myls.sh
内容为:
ls ls -l
3、修改权限
$ sudo chmod myls.sh 775
4、运行
./myls.sh
喜羊羊系列之批处理记录
原文:http://blog.csdn.net/muyang_ren/article/details/44080897