plugins/README.md | 1 + plugins/oldbigfile | 16 ++++++++++++++++ diff --git a/plugins/README.md b/plugins/README.md index 7a10a1c156a08fe9c475c646472d1af7fce0f40e..91b9a17057e57676e1447d887af54a27e14452ec 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -20,6 +20,7 @@ | mocplay | sh | [moc](http://moc.daper.net/) | Appends (and plays, see script) selection/dir/file in moc| | 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/
mupdf-tools | View PDF file in `$PAGER` | diff --git a/plugins/oldbigfile b/plugins/oldbigfile new file mode 100755 index 0000000000000000000000000000000000000000..4b1740518b1f5f3391c4e1a67f304e4266608fd2 --- /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