Saturday, May 9, 2020

Unix or AIX box - remove zero size files from a directory


In our AIX box, we observed, when the files system got 100% utilized, it used to create files with zero size for all the incoming files via file adapter. so need to clear all the zero size files at a fly.

This works for plain BSD so it should be universally compatible with all flavors.

Command:
find . -size 0 |  xargs rm

No comments:

Post a Comment

Featured Post

OIC - how can I use XSLT functions to remove leading zeros from numeric and alphanumeric fields?

To remove leading zeros from an numeric field in Oracle Integration Cloud (OIC) using XSLT, you can Use number() Function The number() funct...