I want to create a file named ./https://www.example.com
, but the following doesn't work:
[ ~]$ URL="https://www.example.com"
[ ~]$ echo "Hello!" >"$URL"
bash: https://www.example.com: No such file or directory
How can I tell bash I want a filename with slashes in it, and that I'm not trying to look into a different (nonexistent) directory?