PDA

View Full Version : zero length files!


Dave A
01-10-2006, 01:09 AM
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