On Thu, October 11, 2007 11:37 pm, Ben Scott said: > Of course, if you're using bash, then > > http://xkcd.com/{1..327} > > will do the job without all the messy syntax or the external program. >
Depends on what version of bash. The first time I tried that, it failed: $ echo http://xkcd.com{1..10} http://xkcd.com{1..10} $ bash --version GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu) Copyright (C) 2002 Free Software Foundation, Inc. However, on another system: $ echo http://xkcd.com{1..10} http://xkcd.com1 http://xkcd.com2 http://xkcd.com3 http://xkcd.com4 http://xkcd.com5 http://xkcd.com6 http://xkcd.com7 http://xkcd.com8 http://xkcd.com9 http://xkcd.com10 $ bash --version GNU bash, version 3.2.9(1)-release (i686-redhat-linux-gnu) Copyright (C) 2005 Free Software Foundation, Inc. -- John Abreau / Executive Director, Boston Linux & Unix IM: [EMAIL PROTECTED] / [EMAIL PROTECTED] / [EMAIL PROTECTED] / [EMAIL PROTECTED] Email [EMAIL PROTECTED] / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9 PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/