Re:All Hacker Monthly issues free for next ~24 hours
by sciurus on Friday December 23, 2011 @05:11PM
(#3387448)
The loop can be replaced with bash's brace expansion (http://www.gnu.org/software/bash/manual/bashref.html#Brace-E...), e.g.
[ Parent
| on HN ]
Re:All Hacker Monthly issues free for next ~24 hours
by dorkitude on Friday December 23, 2011 @05:24PM
(#3387479)
Wow, never knew about that. Due to zero-padding, I found I actually needed two commands for this to work properly:
http://hackermonthly.com/xmas/hackermonthly-issue00{1..9}.zip
http://hackermonthly.com/xmas/hackermonthly-issue0{10..19}.zip
Re:All Hacker Monthly issues free for next ~24 hours
by rbonvall on Friday December 23, 2011 @06:30PM
(#3387608)
Bash is smart:
$ echo {01..20}
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20
$ echo {1..20}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Re:All Hacker Monthly issues free for next ~24 hours
by eurleif on Friday December 23, 2011 @06:47PM
(#3387640)
Bash 4 is smart. Bash 3 isn't.
Re:All Hacker Monthly issues free for next ~24 hours
by ryanbraganza on Friday December 23, 2011 @05:58PM
(#3387550)