The destination is environment variable,
destination=~/Desktop
d=`date +%F-%H%M%S`
filename=${destination}/${d}.{query}
touch $filename
when executing command,it report error. because ~ treat as a string.
the filename is ~/Desktop/2020-05-30-120306.json, ~ is not recognized.
So how to do, I need ~ to be recognized correctly