Needle in a haystack
When you need to find the newest file in a tree:
find . -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "
Written by Lars Van Casteren
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Bash find
Authors
Related Tags
#bash find
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#