Skip to content

Instantly share code, notes, and snippets.

@MaKaNu
Created September 2, 2021 13:50
Show Gist options
  • Save MaKaNu/0312952ed7b9120ec9b68cc0c2514b88 to your computer and use it in GitHub Desktop.
Save MaKaNu/0312952ed7b9120ec9b68cc0c2514b88 to your computer and use it in GitHub Desktop.
Colored syslog alias function
# 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