Last active
March 15, 2019 13:40
-
-
Save rostegg/61a47cf3bd42839134a75506249aa579 to your computer and use it in GitHub Desktop.
Get latest stable version of Tor Browser (https://www.torproject.org)
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 | |
TEMP_DATA=$(wget https://www.torproject.org/download/download-easy.html.en -q -O - | tr -d '[:space:]') | |
VERSION=$(echo "$TEMP_DATA" | grep -o -P '(?<=\"torbrowserbundlelinux64\":\").*?(?=\"}\<\/span\>)') | |
# anoter example | |
# echo "$TEMP_DATA" | grep -o -P '(?<=Version).*?(?=\-Linux\(64\-Bit\))' | tail -c 6 | |
echo $VERSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment