Bash script to output all query strings used in a list of URLs