nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3f40980dd03892c2225b89aa57530990c3074dfb
parent 94c3af873cf2aa46e2cb018412b8ce1e1609d30c
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Fri, 30 Aug 2019 19:59:46 +0530

Plugin oldbigfile: find large files by access time

Diffstat:
Mplugins/README.md | 1+
Aplugins/oldbigfile | 16++++++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/plugins/README.md b/plugins/README.md @@ -20,6 +20,7 @@ The currently available plugins are listed below. | ndiff | sh | vimdiff | Diff for selection (limited to 2 for directories) | | nmount | sh | pmount, udisks2 | Toggle mount status of a device as normal user | | nwal | sh | nitrogen | Set image as wallpaper using nitrogen | +| oldbigfile | sh | find, sort | List large files by access time | | organize | sh | file | Auto-organize files in directories by file type | | pastebin | sh | [pastebinit](https://launchpad.net/pastebinit) | Paste contents of (text) file to paste.ubuntu.com | | pdfview | sh | pdftotext/<br>mupdf-tools | View PDF file in `$PAGER` | diff --git a/plugins/oldbigfile 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