3 lines
152 B
Plaintext
Raw Permalink Normal View History

2015-04-12 18:06:28 -05: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