mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Plugin oldbigfile: find large files by access time
This commit is contained in:
parent
94c3af873c
commit
3f40980dd0
|
@ -20,6 +20,7 @@ The currently available plugins are listed below.
|
||||||
| ndiff | sh | vimdiff | Diff for selection (limited to 2 for directories) |
|
| ndiff | sh | vimdiff | Diff for selection (limited to 2 for directories) |
|
||||||
| nmount | sh | pmount, udisks2 | Toggle mount status of a device as normal user |
|
| nmount | sh | pmount, udisks2 | Toggle mount status of a device as normal user |
|
||||||
| nwal | sh | nitrogen | Set image as wallpaper using nitrogen |
|
| 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 |
|
| 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 |
|
| 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` |
|
| pdfview | sh | pdftotext/<br>mupdf-tools | View PDF file in `$PAGER` |
|
||||||
|
|
16
plugins/oldbigfile
Executable file
16
plugins/oldbigfile
Executable file
|
@ -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
|
Loading…
Reference in a new issue