This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
bash_script_dnld_book [2015/10/23 12:22] zoza created |
bash_script_dnld_book [2015/10/23 12:27] zoza |
||
---|---|---|---|
Line 3: | Line 3: | ||
the book is a set of images, numbered in order of pages | the book is a set of images, numbered in order of pages | ||
- | <script bash> | + | <code bash> |
#!/bin/bash | #!/bin/bash | ||
for i in {1..190}; #replace the second number with the actual number of pages | for i in {1..190}; #replace the second number with the actual number of pages | ||
Line 9: | Line 9: | ||
wget http://link.to.an.image.net/x1000-$i.jpg #replace the url with the actual book | wget http://link.to.an.image.net/x1000-$i.jpg #replace the url with the actual book | ||
done | done | ||
- | + | convert x1000* book.pdf | |
- | </script> | + | </code> |