Last active
December 26, 2019 15:49
-
-
Save Superbil/de528241bdb24a8a9d74c97a1e4dd88c to your computer and use it in GitHub Desktop.
Get last update time of pacman
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| last_upgrade_pacman_time () { | |
| \grep -e "\[PACMAN\] starting full system upgrade" /var/log/pacman.log | tail -1 | awk -F "]" '{print substr($1,2)}' | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment