This question already has an answer here:
I have a line like this in my script:
It fails with this output:
rm: cannot remove 'temp/*.txt': No such file or directory
I don't understand why doesn't that work. What am I doing wrong?