I'm trying to echo a combination of text and variables containing wildcards that I need "unpacked", but I encountered the following behavior:
If I say:
FILENAME=somefile*.txt
echo "something:" $FILENAME
I get:
something: somefile003.txt
Which is what I want, but if I say: If I say:
FILENAME=somefile*.txt
echo "something:"$FILENAME
I get:
something:somefile*.txt
So it seems like if there is no space between quotes and the variable it doesn't glob the wildcard. Is there a way to get it to process the * without adding a space?