说明
1. 由于中间文件比较多,需要cd到一个空目录再执行下面的命令。
2. pdftk需要自行安装。
$ curl 'http://pdf.news365.com.cn/xmpdf/default.asp' | egrep -o '[0-9]+/XM[A-Z0-9]+.pdf' | sed 's!^\(.*\)$!http://pdf.news365.com.cn/xmpdf/\1!' | xargs curl --remote-name-all
$ pdftk * cat output XM.pdf
1. 由于中间文件比较多,需要cd到一个空目录再执行下面的命令。
2. pdftk需要自行安装。
$ curl 'http://pdf.news365.com.cn/xmpdf/default.asp' | egrep -o '[0-9]+/XM[A-Z0-9]+.pdf' | sed 's!^\(.*\)$!http://pdf.news365.com.cn/xmpdf/\1!' | xargs curl --remote-name-all
$ pdftk * cat output XM.pdf