dotfiles/Old/NOVA/usr/local/bin/archage
2015-04-12 18:06:28 -05:00

3 lines
152 B
Plaintext
Executable File

head -n1 /var/log/pacman.log
echo $(($(($(date +%s) - $(date -d "$(head -1 /var/log/pacman.log | cut -d ' ' -f 1,2 | tr -d '[]')" +%s))) / 86400)) days