BackReference
Back Reference
It allows to find repeated blocks in an expression let’s use this content in your file for tests
I need to to find double
expressions in
this this file
Repeated words
In order to find repeated words let’s use this expression:
$ grep -E "([a-z]+) +\1" file.txt
I need to to find double
this this file
If you like this post please pay me with a click on the ads :)