Created
June 5, 2014 20:39
-
-
Save mcenirm/efa39c2096a21c454feb to your computer and use it in GitHub Desktop.
For a set of directories, show the most recent files found.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for d in "$@" ; do | |
echo | |
echo "${d}" | |
find "${d}" -type f -printf '%T+ %P\n' | sort | cat -n | tail -3 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment