I get what it does on higher level... it detects duplicate words. What I am having trouble understanding is the logic of how this works. I am hoping you will correct me if my understanding is off. Other detail is assume that I am using grep on a Linux machine.
- \b will detect the first character.
- \w+ will scan the letters.
Now for the part I am confused about.
- The brackets will "store" the letters up to the first space or really the second \b
- then the /1 will repeat steps 1 to 3 and then compare and if they match... display.
I would appreciate layman's terms if possible.