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.