Nov 24
Just a little reminder for myself: In 93 of 95 cases i want to exclude all of the .svn subdirectories lying around in my working copy.
Andreas brought that one to my mind again with a nasty forest of grep pipes. ;-)
grep -R --exclude \*.svn\* your_pattern
gives me only the output I really need.
Update (2:42pm):
Gosh. After @denderello got nudged about my last blog post I gave http://betterthangrep.com/ a try.
It came via macports and I'm already loving it's colorful output and the per-file groups. Neato.
Nov 9
I installed my mamp stack via macports, so the normal GUI-tools of Mac OS won't let me toggle any services. Coming from the Linux / init world thats my bumbling approach to have a quick startup-script for Apache and MySQL:
#!/bin/bash
if [ "$1" == "start" ];
then /opt/local/apache2/bin/apachectl start&
/opt/local/bin/mysqld_safe5&
else
/opt/local/apache2/bin/apachectl stop
/opt/local/bin/mysqladmin5 -u root shutdown
fi