curl https://www.msi.umn.edu/tutorial-materials >tmp.txt
perl -alne ‘{/(https.*?pdf)/;print $1 if $1}’ tmp.txt >pdf.address
perl -alne ‘{/(https.*?txt)/;print $1 if $1}’ tmp.txt
perl -alne ‘{/(https.*?zip)/;print $1 if $1}’ tmp.txt >zip.address
wget -i pdf.address
wget -i pdf.zip
转载于:https://www.cnblogs.com/liuhui0622/p/4856798.html