Saturday, February 9, 2019

Find the latest modified file


Find the latest modified file:

/var/splunked $ find . -name "*MDB.log" -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "|xargs ls -ltr

No comments:

Post a Comment