Hi thatsmyboy.
When you are doing this:
Code:
$ grep This testing2.txt
THISISMYTESTINGSTRING
The whole file is being printed because grep doesn't recognize 'cr' as line endings. You don't see the whole content because you are printing crs the lines get overwritten.
You can see what is going on if you do:
Code:
$ grep This testing2.txt | od -a
0000000 T h i s I s M y S e a r c h S t
0000020 r i n g cr T H I S I S M Y T E S
0000040 T I N G S T R I N G cr nl
0000054
I hope that points you in the right direction.
Regards.
Bookmarks