dotfiles/.local/bin/scripts/latest

4 lines
148 B
Plaintext
Raw Normal View History

2021-11-25 12:20:13 +00:00
#!/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