dotfiles/Old/NOVA-FD/usr/local/bin/archage

3 lines
152 B
Plaintext
Raw Permalink Normal View History

2015-04-12 23:06:28 +00:00
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