#! /bin/bash for i in {1..10}; do # {1..10} expands to "1 2 3 4 5 6 7 8 9 10" echo $i done
输出以下内容:
1 2 3 4 5 6 7 8 8 10