Can grep be used only show results from the start of match? Example, there is a text file with...
iliketurtles
iliketurtles
[TAB]iliketurtles
asgfhasfgshailiketurtles
^%&%&%*&iliketurtles
The results I want to return would look like...
iliketurtles
iliketurtles
iliketurtles
iliketurtles
iliketurtles
I know that '^iliketurtles*. will return the results if the line starts with it, this is not what I need. I need from the start of the match.
iliketurtles
iliketurtles
[TAB]iliketurtles
asgfhasfgshailiketurtles
^%&%&%*&iliketurtles
The results I want to return would look like...
iliketurtles
iliketurtles
iliketurtles
iliketurtles
iliketurtles
I know that '^iliketurtles*. will return the results if the line starts with it, this is not what I need. I need from the start of the match.