方法1
#!/bin/bash
for ((i=0; i<=5000; i++))
do
touch file$i
done

方法2
#!/bin/bash
for i in $(seq 1 5000)
do
touch file$i
done