Created
June 22, 2021 02:09
-
-
Save sys9kdr/f552595f983adcb34354dc9ddd4f9ff4 to your computer and use it in GitHub Desktop.
オライリーのGNU Make 第3版のPDFを公式WebサイトからDLする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -ex | |
PDF_URL="mae.pdf maegaki.pdf contents.pdf ch01.pdf ch02.pdf ch03.pdf ch04.pdf ch05.pdf ch06.pdf ch07.pdf ch08.pdf ch09.pdf ch10.pdf ch11.pdf ch12.pdf appA.pdf appB.pdf appC.pdf index.pdf ato.pdf" | |
URL_PREFIX="https://www.oreilly.co.jp/library/4873112699/" | |
for i in ${PDF_URL} | |
do | |
wget -O "${i}" "${URL_PREFIX}${i}" | |
sleep 3s | |
done | |
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=gnumakebook.pdf -dBATCH ${PDF_URL} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment