Seems to happen on Mac OS X. http://nlfiedler.github.io/2010/12/05/newlines-in-sed-on-mac.html http://superuser.com/questions/307165/newlines-in-sed-on-mac-os-x