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.

Required fields*

5
  • It would be nice if you used an example where the differences were more visible. I had to squint to see that those two characters are not the same. Commented Jan 18, 2019 at 17:48
  • Sorry, I added a note describing the difference between the lines. Commented Jan 18, 2019 at 17:53
  • Why not just use b and B so it's obvious? I understand that this was probably the actual difference, but for purposes of the question you can make it easier. Commented Jan 18, 2019 at 18:02
  • 1
    I wanted to avoid solutions that would only work on ASCII characters, but since the proposed solution does not depend on it, I changed it. However, I cannot update the answer to reflect the new changes since the edit would be smaller than 6 characters long. Commented Jan 18, 2019 at 18:26
  • related: unix.stackexchange.com/questions/11128/diff-within-a-line Commented Jun 17, 2019 at 13:39