View Single Post
Old 01-10-2006, 01:09 AM   #1
Dave A
Purple Mole
 
Dave A's Avatar
 
Join Date: Aug 2004
Location: North Island New Zealand
Posts: 170
zero length files!

I get a heap of results with no content so i was wondering if anyone can show me a way of finding them so that the can be deleted.

The directory text_content contains a few thousand files named like 999789.txt
Some of these may have a zero file length, I have tried to find them using grep but someone must be able to point me to the way that I can check the files length and delete those with a zero file length.
How can this be done?

Any ideas folks?

Any suggestions will be good.
Heaps of regards
Dave A
Dave A is offline   Reply With Quote