You say you need to do it "in Bash", but you seem to mean "in a script" and not "using pure Bash syntax" (there is a difference). I assume you want the "in a script" meaning.
If you have saved all the links on separate lines in a document, you can pick out all links on the domain
http://www.example.com/ with e.g.
grep "^http://www\.example\.com/" filewithlinks.txt
or all links ending with
grep "\.ogg$" filewithlinks.txt
(The backslash preceding periods is to escape the "
." sign which otherwise means "any character". "
\." instead mean a literal period. Without escaping you'll match links ending with e.g. "logg" as well.)
You could also do line matching directly in the
awk command, but that would be more complicated to change from time to time, I believe. The easiest way is to save the complete list of links in a file as you do and then just search the file with for example
grep as above. Then you also won't have to download and parse the document again if you want to change matching pattern.