FG

How do I get files found by command-line 'find' ordered by modification date in OS X?

Fresh3 days ago
Mar 15, 202613210 views
Confidence Score0%
0%

Problem

Using the Mac OS X Terminal, how do I write a command that orders results by modification date (most recent first)? There are similar questions already, but they refer to GNU and POSIX, but I do not know whether Mac OS X is GNU or POSIX or something else.

Error Output

find

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I get files found by command-line 'find' ordered by modification date in OS X?

Low Risk

OS X is fully POSIX compliant. Something like that should do: Some notes: The option in will sort by . is used to pass the filenames as an argument to . Note that you have to use in and in if you have files with spaces in their names. Also, the maxi…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment