diff options
Diffstat (limited to 'files/.config/nnn/plugins/oldbigfile')
| -rwxr-xr-x | files/.config/nnn/plugins/oldbigfile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/files/.config/nnn/plugins/oldbigfile b/files/.config/nnn/plugins/oldbigfile new file mode 100755 index 0000000..0a21527 --- /dev/null +++ b/files/.config/nnn/plugins/oldbigfile @@ -0,0 +1,16 @@ +#!/usr/bin/env sh + +# Description: List files bigger than input size by ascending access date. +# +# Dependencies: find sort +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +printf "Min file size (MB): " +read -r size + +find . -size +"$size"M -type f -printf '%A+ %s %p\n' | sort + +echo "Press any key to exit" +read -r _ |
