I am trying to do a recursive find and replace in HP-UX and am missing something.
What I have at the moment:
find . -name "*.java" | xargs sed 's/foo/bar/g'
know the problem is that it's not replacing the file inline. I believe on other OS's there is a -i flag, but it seems in my HP-UX version, there isn't.
Any suggestions?