Peter Humphrey writes:
> I'm reduced to asking a newcomer's question: how can I make sed recurse
> down a directory tree?
find . -type f -exec sed -i 's/foo/bar/g' '{}' \;
> And while I'm at it, how do I change the field
> separator from / to enable me to search on that character?
Well, just change it :) It does not need to be a /, it is always the first
character after the s. sed 's%foo%bar%g' will work just the same.
I used to use the ยง character because it is probably not being used in any
of my file names, but maybe it was too special, because kate dropped it
silently from my shell scripts I edited, and hell broke loose.
> I used to have a "SED and AWK" book, but it seems to have walked; and I
> can't see anything helpful from a Google search.
man sed answers your second question :)
Wonko