💻 Software
find -printf on Mac (-printf unknown option)
Fresh5 days ago
Mar 15, 20266474 viewsConfidence Score0%
0%
Problem
I have a little bit of code that I use to get an MD5 sum of the most recently modified file time I use it for generating unique keys for my CDN files, the logic behind this is if a file changes the key changes so the files are un-cached and reloaded. Anyway, when I try to run that on my Mac I get t…
Error Output
find ./media -type f -printf "%TY-%Tm-%Td %TT %p \n" | sort | more | tail -1 | md5 -r | awk '{print $1}'Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: find -printf on Mac (-printf unknown option)
Low Risk
is specific to GNU find and not available on OS X's by default. Install findutils on your Mac, e.g. using Homebrew using the following command: You can alternatively use Macports or Fink, they likely also have this package available. To actually use…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix