Tag Archives: bash
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 [...]
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;
[...]

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