Thursday, March 8, 2012

Finding oldest file recursively in a bunch of folders

find . -type f -printf "%T@ %P\n" | sort -nr | tail -1 | cut -d' ' -f 2-

No comments:

Post a Comment