Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thank you! Unfortunately the two lines you are suggesting still result in 'Hello Hello' on my machine. (I have copied and pasted so I cannot have made a typo.) It seems my commands are alright but my machine behaves differently for some reason or other... Commented Nov 20, 2017 at 20:45
  • You may need to use [[:>:]] in place of \> or \b for the word boundary in OSX sed - see for example sed whole word search and replace Commented Nov 20, 2017 at 22:30