Find all the files after the date?

Hi

I am using
#!/bin/sh
DATE="$1"
FILE="$2"
FLIST=""
for f in $FILE
do
FDATE=$(ls -l $f | awk '{ print $6 }')
if [ "$DATE" == "$FDATE" ];then
FLIST="$FLIST $f"
fi
done

[ "$FLIST" != "" ] && echo $FLIST || echo "Sorry no files found to match $DATE date."

the below... need correction

whne i execute the above
date.sh "2006-01-01" "*.sh"

/home/cvs ->date.sh 2006-01-01 "*.sh"
date.sh[12]: ==: A test command parameter is not valid.
date.sh[12]: ==: A test command parameter is not valid.
date.sh[12]: ==: A test command parameter is not valid.
date.sh[12]: ==: A test command parameter is not valid.
date.sh[12]: ==: A test command parameter is not valid.
date.sh[12]: ==: A test command parameter is not valid.
Sorry no files found to match 2006-01-01 date.

Are you only looking for this, since your requirment is not clear, I assume that you need to search files newer than specified date, suppose you want to search for files newer than 01-Sep-2006, you could try something like this:

#Create an empty file based on date you are looking for, following format is: YYYYMMDDhhmm
touch -t 200609010001 testfile
find . -newer testfile -print

Find command will look for files newer than testfile(01-Sep-2006) and print their path.

For more explanation, search these forums with keyword touch, you'll find many posts answering your question.

Regards,
Tayyab