Within my script, there is this following if, then statement. It basically looks for files in a directory that match a certain naming convention (bingofile*.DAT) and are non empty files and moves these files to a diff. directory. The script works okay if there is only one file matching the search criteria, but if there are multiple files, I get the following error:
./testscript2.sh: line 10: [: myfilelocationpath/temp/bingofile208847857.DAT: binary operator expected
my script:
if [ -s /myfilelocationpath/temp/bingofile* ] # is bingofile*.DAT > 0
then
mv /myfilelocationpath/temp/bingofile* /anewdirectory/temp
fi
P.S: I have already tried mmv instead of mv with no luck.