linux系のsed -iみたいなオプションってfreebsdだと無いかな。

対象ファイルを直接書き換える、ってやつ。

sed 's/hoge/fuga' < from > to; mv to from
的な