使用touch命令批量创建文件

[root@ localhost shell]# touch {1..10}.txt
[root@ localhost shell]# ls
10.txt  1.txt  2.txt  3.txt  4.txt  5.txt  6.txt  7.txt  8.txt  9.txt  s1.sh  s2.sh  s4.sh  s81.sh  s8.sh
[root@ localhost shell]# rm -f {1..10}.txt
[root@ localhost shell]# ls
s1.sh  s2.sh  s4.sh  s81.sh  s8.sh
posted @ 2020-01-07 15:57  Zsecret  阅读(2188)  评论(0编辑  收藏  举报