2

Generate a sequence of numbers

 $ echo {01..10} # 01 02 03 04 05 06 07 08 09 10

— by Elkku on March 1, 2015, 12:04 a.m.

Explanation

While the original one-liner is indeed IMHO the canonical way to loop over numbers, the brace expansion syntax of bash 4.x has some kick-ass features such as correct padding of the number with leading zeros.

Limitations

Limited to bash (>=4.x).