#!/bin/bash
maxDate='00000000'
fileDate='20140507'
if [[ $maxDate == '00000000' ]]; then
echo "right"
fi
echo $fileDate
This make me really crazy, I have spend whole day to deal with this format stuff. the script is like above it print out unexpected end of file if I delete the last line, it will not print anything which is not correct. I really don't know what wrong with it.