Created
December 11, 2013 10:35
-
-
Save raggleton/7908259 to your computer and use it in GitHub Desktop.
Prints filename of most recently modified version of example_*.txt. Taken from http://stackoverflow.com/questions/4561895/how-to-recursively-find-the-latest-modified-file-in-a-directory
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
find . -type f -name "example-*.txt" -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment