I am trying to execute the following command in a shell script where
cp "$adir/$extType" "$destination"
However I get:
cp: cannot stat ‘mydir/*.txt’: No such file or directory
but there is such directory and if I execute it by hand in command line it works.
Any ideas what's wrong?