|
Glenn,
Thank you very much it's throughing an error now. But if I don't need to pass the whole name of the file but just BARE01_DLY.
some thing like this: check20.sh BARE01_DLY
But it has to check whether 20 files are present for that day or not? I am using the code below. It's not working. What's wrong in this?
#!/bin/ksh
myfilepattern=$@
integer filecount=0
for file in $myfilepattern_$(date +%Y%m%d); do
filecount=$filecount+1
done
if (( $filecount == 20 )); then
exit 0
else
exit 1
fi
Please suggest
|