From Electron Cloud
Jump to: navigation, search
 
 
(3 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
perl -e 'for ($i=20; $i<=33; $i++) { system "wget http://www.innerlighttheory.com/ch$i.pdf"; };'
 
perl -e 'for ($i=20; $i<=33; $i++) { system "wget http://www.innerlighttheory.com/ch$i.pdf"; };'
 
</pre>
 
</pre>
 +
 +
===[http://www.rice.edu/web/perl-edit.html one-line HTML editing]===

Latest revision as of 00:08, 30 December 2006

The perl -e gates

one-line looping

To download a book (this example is a free DSP book):

perl -e 'for ($i=1; $i<=19; $i++) { system "wget http://www.spectrumsdi.com/ch$i.pdf"; };'
perl -e 'for ($i=20; $i<=33; $i++) { system "wget http://www.innerlighttheory.com/ch$i.pdf"; };'

one-line HTML editing