Skip to content

Instantly share code, notes, and snippets.

@jhoblitt
Created September 26, 2017 20:35
Show Gist options
  • Save jhoblitt/c12e12db668de060d3318a2dcdaf636b to your computer and use it in GitHub Desktop.
Save jhoblitt/c12e12db668de060d3318a2dcdaf636b to your computer and use it in GitHub Desktop.
sed on osx is broken
jenkins-elcap-1:~ square$ echo "foo" | sed -E '/foo/ { /foo/ b }'
sed: 1: "/foo/ { /foo/ b }": unexpected EOF (pending }'s)
jenkins-elcap-1:~ square$ echo "foo" | sed -E '/foo/ { /foo/ }'
sed: 1: "/foo/ { /foo/ }": command } expects up to 0 address(es), found 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment