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
function 4chan() { | |
if [[ $# -ne 1 ]] | |
then | |
echo 'No URL specified! Give the URL to the thread as the ONLY argument' | |
return 1 | |
fi | |
# This should look something like: g/thread/73097964 | |
urlPrimative=$(grep -o '[0-9a-zA-Z]\{1,4\}/thread/[0-9]*' <<< $1) | |