Bash Shell - Script to get URL's with word chosen by the user

0

Good evening, I have a question regarding a bash shell script that will return the URLs present on a reddit page, that is, in a sudoddit. What I got so far was to return the URLs that are on a page inserted in the code and wanted it when running the program the user could write a word and the script would fetch the URL's with that word in common. This is the code I have so far:

" wget -qO- https://www.reddit.com/r/todayilearned/ |grep -Eo "(http)://[a-zA-Z0-9./?=_-]*" | sort | uniq "
    
asked by anonymous 14.12.2017 / 23:05

0 answers