[root@localhost ~]# cat create50.sh
#!/bin/bash
#创建50个文件 for i in `seq ` do touch student$i done echo "创建50个文件成功!"
[root@localhost ~]# bash create50.sh
创建50个文件成功! [root@localhost ~]# cat del50.sh
#!/bin/bash
#删除50个文件 for i in `seq ` do rm student$i done echo "50个文件删除成功!!!"
[root@localhost ~]# bash del50.sh
50个文件删除成功!!!