sed s/baz/baz\\nelephants/
sed -i.bak s/baz/"baz\\n - elephants"/ *.txt
Reply on news.ycombinator.com