In bash, the file globbing * doesn't work inside double quotes, but my filename contains whitespace, so I need to double quote filename before passing it to a shell script. How can I do that?
For example
myscript.sh "0$i*.pdf"
where the pdf files may be "01a b.pdf", "02c d.pdf". I use i
to store 1
and then 2
.
Thanks.
myscript.sh "0$i"*".pdf"
.