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 "