dotfiles/.local/bin/scripts/latest
2021-11-25 13:59:18 +01:00

3 lines
148 B
Bash
Executable file

#!/bin/sh -e
# Displays the latest files in the given directory or pwd
find "${1:-$PWD}" -maxdepth 4 -type f -printf '%.16T+ %P\n' | sort -r | head