Created
September 2, 2021 13:50
-
-
Save MaKaNu/0312952ed7b9120ec9b68cc0c2514b88 to your computer and use it in GitHub Desktop.
Colored syslog alias function
This file contains 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
# ccze functions | |
greplog() { | |
if [ -n "$1" ] | |
then | |
sudo grep $1 /var/log/syslog | ccze -A | less -R | |
else | |
sudo cat /var/log/syslog | ccze -A | less -R | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment