Created
June 2, 2017 15:50
-
-
Save andygock/fe652985a8fc7d255d5516d2f1b81c7a to your computer and use it in GitHub Desktop.
Bash script: Download latest Adobe Reader 11 update installer
This file contains hidden or 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
#!/bin/bash | |
# | |
# Download latest Adobe Reader 11 update installer | |
# | |
page2=$(curl -s "http://supportdownloads.adobe.com/product.jsp?product=10&platform=Windows" \ | |
| grep "Adobe Reader 11.*update - All" \ | |
| head -n 1 \ | |
| cut -d '"' -f 2) | |
echo "> $page2" | |
page3=$(curl -s "http://supportdownloads.adobe.com/$page2" \ | |
| grep "thankyou.jsp" \ | |
| cut -d '"' -f 4 \ | |
| sed 's/&/\&/g') | |
echo "> $page3" | |
url=$(curl -s "http://supportdownloads.adobe.com/$page3" \ | |
| grep "\.msp.*Download" \ | |
| cut -d '"' -f 4) | |
wget "$url" -O "${url##*/}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment