If You’re Tired of Answering Simple Tech Support Questions…

This post is more for people that are tired of receiving technical support questions which are easily answered with a simple Google search. I don’t mind receiving questions from paying clients, it’s the family and friends seeking free computer help that gets annoying sometimes. There is a very clever website called “Let Me Google That For You” which will allow you to type in a Google search phrase like you normally would except this website will generate a URL that you can give to someone which will graphically illustrate what you did. When the person you give this URL to loads it in their web browser what they see is a short animation of you typing in the Google search phrase along with an obnoxious caption explaining each step that is done in an almost child-like manner. It sort of points out how easy it is to find the information yourself rather than bothering someone else for help.

Here is a demo of what the website produces for a simple search I did: http://tinyurl.com/7hasnj

Here is the URL for the Let Me Google That For You Website: http://www.letmegooglethatforyou.com

Google Logo

OS X – How to Search For a Substring Inside of GZIP and BZ2 Files

This tip is really a generic *Nix command so it should not only work in OS X but also in other flavors of UNIX such as Linux.

In OS X a lot of the log files are auto-archived into compressed GZIP files in Tiger (Mac OS X 10.4) and BZ2 files in Leopard (Mac OS X 10.5). If you need to search for an occurrence of a word or other string of text in a compressed GZIP file, you can use the following terminal command:

zgrep someString theLogFileName.log.gz

As an example, say you want to search for the word “error” in a compressed system log in Tiger. To do this you would launch the Terminal application and run the command:

zgrep error /var/log/system.log.0.gz

Alternatively you can search all compressed system log files in a single command by using an asterisk (*) as a “wild card” character:

zgrep error /var/log/system.log*

Leopard uses the BZ2 compression scheme for most of its log files and you can similarly search those files by using the bzgrep command. For example, say you wanted to search all the application firewall logs for instances of the word “connection”. To do this you would run the following command in the Terminal application:

bzgrep connection /var/log/appfirewall.log*

If you need to search for a string that consists of more than one word separated by spaces, you would need to surround the search string in quotation marks:

bzgrep "connection attempt" /var/log/appfirewall.log*