This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Open
Description
example code
## sort by time in downloads dirs
IFS=$'\n'
if [[ $PWD == ~/Downloads* ]]; then
dirs=($(stat -c '%Y=%n' "${dirs[@]}" | sort -nr | cut -d '=' -f2))
files=($(stat -c '%Y=%n' "${files[@]}" | sort -nr | cut -d '=' -f2))
fi
unset IFS
list=("${dirs[@]}" "${files[@]}")
pull request #184
Metadata
Metadata
Assignees
Labels
No labels