how to check identical files name as prefix present or not in shell script i.e. MY_REPORT_2018_04_23_01.txt, MY_REPORT_2018_04_23_02.txt, MY_REPORT_2018_04_13_03.txt etc.
when i am trying:
if [ ! -e MY_REPORT_*.txt ] ;
then
echo "files not present in current directory"
exit 1
fi
It's working but with a warning message:
[: too many arguments