Even after installing via brew findutils on mac I keep getting a very very nasty
find: -printf: unknown option"
when passing this line on bash
"find "$dir" -maxdepth 1 -name "*.html" -type f -printf '%T@ %p\0' "
what works fine on linux
Can you please please please help in finding and alternative or understand why, even with findutils mac osx is letting me down big time ?
Ta muchly and a lot of love and happiness for whomever replies !!!!
The built-in
findbinary doesn’t support the-printfcommand. This is what you’re executing. Try runningtype findand you’ll probably seefind is /usr/bin/find.I believe your problem here is that
brew install findutilsactually prefixes all of the installed programs with the letterg, so what you want isgfindinstead offind.