Added the -F flag to grep in case there are '[]' in the URL