Monthly Archives: August 2012

Using Sed to add a new line in Mac Terminal

This was driving me crazy until I hunted down the correct syntax. The following will replace a semicolon with a new line in Terminal for Mac

sed -e ‘s/;/\’$’\n/g’ /tmp/blah