I’m trying to use mkdir command in a bash script using a “*” wildcard.
Full code is:
mkdir -p $EXTRACTDIR/$CV_NAME*/release
It supposed to create a folder “release” in an existing “OpenCV-2.2.0” folder.
Two computers does exactly that and the third creates a folder OpenCV*/release, and I can’t figure out why.
Thnx for your help
On the third computer “OpenCV-2.2.0/release” doesn’t exist, so wildcard matching will fail and will result in a string where
*is untouched.cd $EXTRACTDIR/$CV_NAME*; mkdir releaseor
if you have multiple $CV_NAME* directories, you have to use a loop.