#!/usr/bin/python # Mac OS X (and probably other bsds, too) doesn't have ``seq'' like linux # (it's in GNU coreutils, after all), and I needed it for a script. # This is why I love python -- 10 seconds, 0 thought, and it works perfectly. # timdoug, 2008-04-24 import sys try: print '\n'.join([str(i) for i in range(1, int(sys.argv[1]) + 1)]) except: print "usage: %s n" % sys.argv[0]