Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File list excluding 0 byte files

Status
Not open for further replies.

stephenk1973

Technical User
Jun 11, 2003
246
GB
Is there a way of listing files excluding those of 0 bytes.

The oracle db we have outputs to filename.lis, the file is sometimes created but the query returns nothing so the file remains empty, 0bytes.

I have another program which grabs the .lis and processes it, unfortunately the empty files cause it problems.

Any suggestions greatly appreciated.

Thanks
Stephen
 
either:
man test, -s option

or:
man find, -size option

hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top