Find: Difference between revisions
Jump to navigation
Jump to search
Anthoanthop (talk | contribs) (Created page with "find /var/lib/kafka/Views* -mindepth 1 -newermt "feb 02 2016" -print0 | xargs -r0 stat -c %y\ %n | sort | tail -40") |
Anthoanthop (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
=Find 40 files newer than a specific date and list them sorted by modification time= | |||
<syntaxhighlight lang="bash"> | |||
find /var/lib/kafka/Views* -mindepth 1 -newermt "feb 02 2016" -print0 | xargs -r0 stat -c %y\ %n | sort | tail -40 | find /var/lib/kafka/Views* -mindepth 1 -newermt "feb 02 2016" -print0 | xargs -r0 stat -c %y\ %n | sort | tail -40 | ||
</syntaxhighlight> |
Revision as of 14:55, 4 February 2016
Find 40 files newer than a specific date and list them sorted by modification time
find /var/lib/kafka/Views* -mindepth 1 -newermt "feb 02 2016" -print0 | xargs -r0 stat -c %y\ %n | sort | tail -40