
ls:ai:2c05e
find all directories only in the current directory sort by month date time
$ ls -l -t -d */ | awk '{print $6,$7,$8,$9}' | sed 's/ /-/g' | awk '{print $1, $2, $4, $3}' | jq -nR '${inputs | split("-") | {month: .[0}, day: .${1}, time: .${2}, directory: .${3}}]'
try on your machine
List all directories only in the current directory and sort by month date time in JSON format
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 in the current directory sort by month date time?