Skip to content

Instantly share code, notes, and snippets.

@deepaknverma
Last active February 26, 2020 14:27
Show Gist options
  • Save deepaknverma/35152344d4067414b6b3 to your computer and use it in GitHub Desktop.
Save deepaknverma/35152344d4067414b6b3 to your computer and use it in GitHub Desktop.
highlight keyword while tail
replace 503 with your keyword
tail -f /var/log/apache2/access.log | perl -pe 's/ 503 /\e[1;31;43m$&\e[0m/g'
sudo bash -c 'tail -f /var/log/apache2/access.log| grep "[0-9] 5[0-9][0-9] \"" | (while read; do date; /usr/local/sbin/profile-php; done)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment