summaryrefslogtreecommitdiff
path: root/.local/bin/pacbydate
blob: 4c0cc2933fa62a384799f67c9186fbefab96b185 (plain)
1
2
3
4
#!/bin/sh

pacman -Qei | grep -P "^(Name|Install Date)" | sed -r ":a;N;s/Name\s+: (.*)\nInstall Date\s+: (.*)/\2\t\1/" | while read pkg_date pkg_name; do echo -e $(date +0%F\ %T --date="$pkg_date") '\t' $pkg_name; done | sort
# Need to fix dates and sorting