I have a bash script containing this code:
path=/apps/files/ ext=*.csv rm -f $path$ext
This is not working. When I set -o to echo each command I see this in the output...
rm -f '*.csv'
So it's not getting the path, but I use that path variable throughout the script and it works. The only difference would be that I use it with specific file names and with commands other than rm. So something like...
file=abc.csv echo "some text" >> $path$file
... will work perfectly.
Any help would be appreciated.