find or ls -l recursive output in YYYY-MM-DD format on FreeBSD
0
votes
1
answer
39
views
I'm trying to list files recursively with this date format YYYY-MM-DD on a on FreeBSD.
I tried the Linux commands I know but none of them worked :
$ ls -lR --time-style=+'%Y-%m-%d %T'
ls: unrecognized option '--time-style=+%Y-%m-%d %T'
usage: ls [-ABCFGHIJLOPRSTUWYZabcdefghiklmnopqrstuwxyz1,] [-D format] [file ...]
$ find . -printf "%TY-%Tm-%Td %p\n"
find: -printf: unknown primary or operator
$
How can I do that ?
EDIT0 : I added the recursive
word in the title because it was only in the content of my question.
BTW : I forgot that ls -lR
is a pain to grep
so I'm more interrested in a find
like solution :)
Asked by SebMa
(2433 rep)
May 15, 2025, 04:04 PM
Last activity: May 15, 2025, 04:50 PM
Last activity: May 15, 2025, 04:50 PM