inital commit of clone of old repo

This commit is contained in:
Contegix Support
2015-04-12 18:06:28 -05:00
parent 5529249e29
commit 77e1a1340d
3071 changed files with 157540 additions and 4 deletions

View File

@ -0,0 +1,18 @@
#!/bin/bash
declare -A usage
exec 0< <(pacman -Ql | grep bin)
while read pkg binary; do
lastused=$(stat -c '%X' "$binary")
if [[ -z ${usage[$pkg]} ]] || (( lastused > ${usage[$pkg]} )); then
usage[$pkg]=$lastused
fi
done
for key in "${!usage[@]}"; do
printf '%s\t%s\n' "${usage[$key]}" "$key"
done | sort -rn | while read time pkg; do
printf '%(%c)T\t%s\n' "$time" "$pkg"
done