|
Of course it is retreiving all the files. In your command you are just running 'ls -l|grep -c ^-'. This lists all files in the directory, then just filters out plain files (removes dirs/pipes/devices).
You'll need to filter for files created on the 8th first to do what you want. Use find or grep to get the files that you want first and then run the count.
|