plugins/oldbigfile
raw| 1 | #!/usr/bin/env sh |
| 2 | |
| 3 | # Description: List files bigger than input size by ascending access date. |
| 4 | # |
| 5 | # Dependencies: find sort |
| 6 | # |
| 7 | # Shell: POSIX compliant |
| 8 | # Author: Arun Prakash Jana |
| 9 | |
| 10 | printf "Min file size (MB): " |
| 11 | read -r size |
| 12 | |
| 13 | find . -size +"$size"M -type f -printf '%A+ %s %p\n' | sort |
| 14 | |
| 15 | echo "Press any key to exit" |
| 16 | read -r _ |