2021-11-25 13:20:13 +01:00
|
|
|
#!/bin/sh -e
|
|
|
|
# Displays the latest files in the given directory or pwd
|
2021-12-02 23:33:22 +01:00
|
|
|
test "$1" = "-a" && all=true && shift
|
|
|
|
find "${1:-$PWD}" -maxdepth 4 -type f -printf '%.16T+ %P\n' |
|
|
|
|
sort -r | $(test "$all" && echo "less" || echo "head")
|