Last active
July 25, 2020 14:02
-
-
Save raghunayak/5e99fc8f95f1742846bc9c9ae9d8f858 to your computer and use it in GitHub Desktop.
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
URL="https://download.qt.io/snapshots/qtcreator/" | |
main_ver=$(wget -qO- ${URL} | sed 's/</\'$'\n''</g' | sed -ne '/<table>$/,$ p' | grep -m1 -oP 'href="\K\d+\.\d+\.?\d*') | |
URL=${URL}${main_ver}/ | |
sub_ver=$(wget -qO- ${URL} | sed 's/</\'$'\n''</g' | sed -ne '/<table>$/,$ p' | grep -m1 -oP 'href="\K\d+\.\d+\.?\d*') | |
URL=${URL}${sub_ver}/ | |
package=$(wget -qO- ${URL} | sed 's/</\'$'\n''</g' | sed -ne '/<table>$/,$ p' | grep -m1 -oP 'href=".+">\K(.+\.run)') | |
wget -c $URL$package |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment