I am executing script from another location and my input files are in different location.
So given solution is not working.
If I write "$SEARCH_MASK_INPUT_FILE", then I am getting list of all files and folders present in the current location.
Using you solution, i am getting list of file present in the same directory, from where i am executing script. I need to look for files in specified directory.
If I use
for file in "<path>/ABC_CR_PQR*.*"; do
echo $file
done
I am getting list of files with path as well. I just want the file names.
So instead of doing "<path>/ABC_CR_PQR*.*"; I want to use one command so that, i'll get output in one variable.