
find:ai:c0495
find all directories only sort month
$ find . -maxdepth 1 -type d -printf '%TY-%Tm\t%p\n' | sort -k1,1n -k2,2n | cut -f2-
try on your machine
Find all directories in the current directory, sort them by modified date (latest first) and display the results as a JSON string
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.
Questions that are answered by this command:
- find all directories only sort month?