How Can I Store a Wildcard in a Variable
I have the following code:
target="file.txt" ls "$target"
This does not work with a wildcard:
target="*" ls "$target"
ls: cannot access '*': No such file or directory
The issue is that it is being wrapped in quotes.
It is doing
ls '*' instead of