4 ms·
The loop can be replaced with bash's brace expansion (http://www.gnu.org/software/bash/manual/bashref.html#Brace-Expansion http://www.gnu.org/software/bash/manu
by sciurus 15y ago
The loop can be replaced with bash's brace expansion (http://www.gnu.org/software/bash/manual/bashref.html#Brace-Expansion http://www.gnu.org/software/bash/manual/bashref.html#Brace-E...), e.g.
wget http://hackermonthly.com/xmas/hackermonthly-issue0{01..19}.zip
- dorkitude 15y agoWow, 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
- ryanbraganza 15y agoTry: $ wget http://hackermonthly.com/xmas/hackermonthly-issue{001..19}.zip http://hackermonthly.com/xmas/hackermonthly-issue{001..19}.z...
- rbonvall 15y agoBash 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
- eurleif 15y agoBash 4 is smart. Bash 3 isn't.