Tag Archives: bash

Safely turn off Spotlight and remove from menu bar in OS X Snow Leopard

I don’t like the Spotlight indexing and search that is included in Mac OS X. I use Quicksilver instead but have been procrastinating turning off Spotlight. Well I finally got around to disabling Spotlight and wanted to go about it in a safe way. I came across too many forum posts doing dangerous things [...]
Posted in Software | Also tagged , , , , | Comments closed

Where is my crontab located on Mac OS X 10.5 Leopard?

I googled around for a few minutes with no luck. After probing around my system, here is where I found my crontab file: Macintosh-2:mls TAmoyal$ sudo ls /usr/lib/cron/tabs/ Password: TAmoyal I found it by checking the crontab man page: man crontab Where I saw a “FILES” section: FILES /usr/lib/cron/cron.allow /usr/lib/cron/cron.deny And that lead me [...]
Posted in Random, Software | Also tagged , , , | Comments closed

Ignore svn directories while you grep

I have seen a lot of posts that show you how to ignore svn files when you grep. However, there seems to be more demand for a script that ignores svn directories. Here is one option: tgrep(){ grep -r $1 * | grep -v .svn | while read line; [...]
Posted in Software | Also tagged , , , | Comments closed