Find This

Kaiser’s rehab hospital goes by the acronym KFRC. If you grew up in San Francisco you know why that cracks me up. The rehab hospital has a farmers market out front with amazing tamales and enchiladas. This is something I miss about the Bay Area, in general, tamales at the farmers’ market. On that note, the Union City Raizes do Brasil batizado had a potluck afterwards with papusas, which are something else that just are not as easy to come by in New York City. He’ll be fine, that is becoming more and more clear.

If you, dear reader, ever find yourself or a loved one in a hospital, and you find yourself feeling disempowered or overwhelmed (or if you find you are feeling “just fine” which is actually a clear sign that you are in over your head) I have got loads of advice for you, because I am an expert in patient advocacy. I might know eff all about medicine, but I know from insisting that someone be cared for adequately. I have loads of suggestions about articulating your own needs (“Well, I could use a massage and here are three places that I know for a fact sell gift certificates”) and about the importance of getting a calendar set up to regulate visitor so that you don’t wind up mobbed one day and all sad and lonely the next.

Meanwhile, I am really taking a shine to sed -i -e 's/foo/bar/g' ./* except that I need it to recurse through directories not balk at the first directory it hits and then sit there. Since I also don’t want to search through .svn files, and since for bonus fun a lot of files that make up our site are sans file extension, I’m reading this and contemplating something with -exec.

I was kind of hoping that I could use a little bit of find ./ -not \( -name "*.svn-base"" -o -name "foo" \) '{}' \; -print but as it turns out what I really need to do is more like find ./ -wholename '*/.svn/*' -prune -o -exec grep "somestring" {} \;.

UPDATE (5 Mar 2008)
Here is what works: find ./ -wholename '*/.svn/*' -prune -o -type f -exec sed -i -e 's/free software/free free software/g' {} \;

Another UPDATE (3 Apr 2008)
Another search that works similarly (but without sed) grep -ir --exclude='*.svn*' "software freedom" /srv/apache2/

Leave a comment