aboutsummaryrefslogtreecommitdiff
path: root/files/.config/nnn/plugins/oldbigfile
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2023-10-25 19:17:11 +0500
committerAnton Bobov <anton@bobov.name>2023-10-27 14:26:55 +0500
commit62c95ef2f3a2374ddda52302d54801cfe442484d (patch)
tree8b74bb0bee41cf62bc9149429dac7b0f81123919 /files/.config/nnn/plugins/oldbigfile
parent748cafebaf85b9827c8d3df4535a1a34ddbe82fd (diff)
[nnn] Add getplugs plugin and update all plugins
Diffstat (limited to 'files/.config/nnn/plugins/oldbigfile')
-rwxr-xr-xfiles/.config/nnn/plugins/oldbigfile16
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 _