extracting data from files..

frnds,

I m having prob woth doing some 2-3 task simultaneously...

what I want is...
I have lots ( lacs ) of files in a dir...
I want.. these info from arround 2-3 months files

filename convention is - abc20080403sdas.xyz ( for todays files )
I want

  1. total no of files for 1 dec 2007 to 1 apr 2008 ( daily count )
  2. sum of total line counts in those files...
  3. file size of that files...

Pl help... at least suggest..

-thanks

read this post on how to increment dates in YYYYMMDD format

make a loop around those files and addup stats, thats all!