Sunday, March 24, 2013

Bash tips: Use bash's built-in brace expansion to display a range of numbers

Use bash's built-in brace expansion to display a range of numbers.

So "echo {1..5}" will expand to "1 2 3 4 5".

$ echo {1..5}
1 2 3 4 5

No comments: