HOW TO : Search for multiple words in a string using grep
Just for my records grep “WORD\|ANOTHER\|NEITHER” string searches for either “WORD” or “ANOTHER” or “NEITHER” in string.
Just for my records grep “WORD\|ANOTHER\|NEITHER” string searches for either “WORD” or “ANOTHER” or “NEITHER” in string.
If you are using a Linux system that uses yum for package management (like Fedora, Centos, RHEL), you can use the following command to find out...
Say you are using netstat to checl all established network connections on a windows machine (confirmed to work on windows 7+ and windows server 2008+) and...
If you want to search for a pattern at the end of a line, you can use tail -f logfile | grep -v “0$” breaking down...
varnishlog, one of the tools provided with varnish cache, uses VSL Query Expressions (https://www.varnish-cache.org/docs/trunk/reference/vsl-query.html) to provide some powerful insights into the requests and responses. Here is...
We were trying to modify some ACL (access control lists) in squid to allow traffic to certain websites. Instead of adding each individual hostnames in a...