Monday, March 25, 2013

Bash tips: Use "seq" to print a sequence of numbers with a multiplier

Use "seq" to print a sequence of numbers using a multiplier.

So "seq 0 2 10" will print "0 2 4 6 8 10":

victux@asus-linux:/tmp - :) $ seq 0 2 10
0
2
4
6
8
10

No comments: