Is your (Unix/Linux) filesystem getting full and you wonder whether removing some old log files would help? Use this one-liner to find out how much space would be freed:
find /opt/app/logs -iname "*log*" -type f -mtime +30 | perl -lne '$sum + += (stat)[7] }{ print $sum'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How much disk space would be freed?
by Anonymous Monk on Feb 21, 2017 at 20:07 UTC | |
by reisinge (Hermit) on Feb 22, 2017 at 12:55 UTC |