I've been trying to check and move a file based on whether the file has a timestamp at the end or not. Here's what I have tried. What am I doing wrong?
while read product; do
        if [ -f ${PRODUCT_HOME}/file.*.zip]; then
                echo "Has timestamp."
                mv ${PRODUCT_HOME}/file.*.zip /home/has_time_stamp/file.zip
        else
                echo "No timestamp"
                mv ${PRODUCT_HOME}/file.zip /home/no_time_stamp/file.zip
        fi
done <product_details.txt
Error:
test.sh: 56: [: missing ]
