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!

Easier way to filter for 0 byte files? 2

Status
Not open for further replies.

aixmurderer

IS-IT--Management
Nov 28, 2000
603
NZ
Presently do a ls -l on the files in question, and then awk the bytecount value into a variable to be used for evaluation.

It works well, but I wondered if there was an easier/quicker way to do it.

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Thanks Ed. Yip, always forget about "find", it's a mighty powerful sword.

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
...and a double-edged one if you're running it with the
-exec rm {} \; option!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top