Expand a range of numbers

I always – always – forget the seq command

seq 1 5
1
2
3
4
5

It’s not in OS-X. However, you can do the same thing using the built in bash

for X in {1..5}
> do
> echo $X
> done
1
2
3
4
5

You also have the very odd command jot. The 5 below is the number of times to do something (0 is infinity.) The 1 is where to start. The third parameter (not shown) is where you should end. It’s a funky command.

jot 5 1
1
2
3
4
5