Skip to content

Instantly share code, notes, and snippets.

@andygock
Created June 2, 2017 15:50
Show Gist options
  • Save andygock/fe652985a8fc7d255d5516d2f1b81c7a to your computer and use it in GitHub Desktop.
Save andygock/fe652985a8fc7d255d5516d2f1b81c7a to your computer and use it in GitHub Desktop.
Bash script: Download latest Adobe Reader 11 update installer
#!/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