Skip to content

Instantly share code, notes, and snippets.

@ikolar
Created April 18, 2009 11:42
Show Gist options
  • Save ikolar/97566 to your computer and use it in GitHub Desktop.
Save ikolar/97566 to your computer and use it in GitHub Desktop.
# find the 20 newest files under /tmp
find /tmp -printf "%A+ %p\n" | sort -nr | head -20
# you can, of course, add the usual conditions (-name, -iname, -path, ..) to the expression.
find /var/log -name "mongrel*.log" -printf "%A+ %p\n" | sort -nr | head -20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment