digital_file.sh 

#!/bin/bash

for i in $(seq 111 999)
do
  touch /tmp/$i.txt
done

验证:

[root@logstash ~]# sh digital_file.sh 
[root@logstash ~]# 
[root@logstash ~]# ls -l /tmp/*.txt
-rw-r--r-- 1 root root     0 Jun  7 08:50 /tmp/111.txt
-rw-r--r-- 1 root root     0 Jun  7 08:50 /tmp/112.txt
-rw-r--r-- 1 root root     0 Jun  7 08:50 /tmp/113.txt
-rw-r--r-- 1 root root     0 Jun  7 08:50 /tmp/114.txt
-rw-r--r-- 1 root root     0 Jun  7 08:50 /tmp/115.txt
-rw-r--r-- 1 root root     0 Jun  7 08:50 /tmp/116.txt
-rw-r--r-- 1 root root     0 Jun  7 08:50 /tmp/117.txt
-rw-r--r-- 1 root root     0 Jun  7 08:50 /tmp/118.txt
......
-rw-r--r-- 1 root root     0 Jun  7 08:50 /tmp/996.txt
-rw-r--r-- 1 root root     0 Jun  7 08:50 /tmp/997.txt
-rw-r--r-- 1 root root     0 Jun  7 08:50 /tmp/998.txt
-rw-r--r-- 1 root root     0 Jun  7 08:50 /tmp/999.txt
[root@logstash ~]#