I am trying to ls some files with a pattern in a directory. I only want to scan the first level not recursive.
My script:
for i in $(ls $INCOMINGDIR/*$BUSSINESSDATE*)
do
echo $i;
done
Above command scan recursively. How can make it only to scan the first level directory?
printf %s\\n "$INCOMINGDIR/"*"$BUSINESSDATE"*
– mikeserv Jan 16 '15 at 03:08