From 3f40980dd03892c2225b89aa57530990c3074dfb Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 30 Aug 2019 19:59:46 +0530 Subject: Plugin oldbigfile: find large files by access time --- plugins/oldbigfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 plugins/oldbigfile (limited to 'plugins/oldbigfile') diff --git a/plugins/oldbigfile b/plugins/oldbigfile new file mode 100755 index 0000000..4b17405 --- /dev/null +++ b/plugins/oldbigfile @@ -0,0 +1,16 @@ +#!/usr/bin/env sh + +# Description: List files bigger than input size by ascending access date. +# +# Requires: find sort +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +echo -n "Min file size (MB): " +read size + +find -size +"$size"M -type f -printf '%A+ %s %p\n' | sort + +echo "Press any key to exit" +read dummy -- cgit v1.3.1