How in OS/X to get 'seq' command-line functionality?

gnu, macos, seq, sequences, shell

Solution

On my mac both of these work (OS X 10.8.5)

Andreas-Wederbrands-MacBook-Pro:~ raven$ for i in {1..10}; do echo $i; done
1
2
3
4
5
6
7
8
9
10
Andreas-Wederbrands-MacBook-Pro:~ raven$ for i in `seq 1 10`; do echo $i; done
1
2
3
4
5
6
7
8
9
10

Problem

I'm still on Snow Leopard (I know...) so forgive if this is fixed in one of the later versions of OS/X, but I want to do standard "seq" aka: ``` for i in `seq 1 100` ; do cat /whatever > $i.txt ; done ``` I thought installing GNU tools would do it, but apparently not.

Original source