LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   grep -E is broken -- cannot find end of line (https://www.linuxquestions.org/questions/linux-general-1/grep-e-is-broken-cannot-find-end-of-line-4175548999/)

RandyTech 07-28-2015 05:02 PM

Quote:

Originally Posted by Keith Hedger (Post 5397226)
Does sed work as expected if it too doesn't work then it's probably your file...

Found it. Combination of a script used to copy the file, and an 'I/O error'! (I/O being "idiot operator" -- and that would be me :()

Little did I realize the script filters the source file through 'sed':
Code:

sed -i 's/\r//'
and of course that stripped all CR from the resulting copy. Not realizing that, I assumed the source was same as the copy (duh). I so I'm looking for the CR in the clean file and wondering why grep failed on the source file. I can hear the chorus now ... "What a dummy, dummyyyy, dummyyyyyyyy" LOL

EDIT: BTW ... Thanks for taking time to help out an idiot :)

Keith Hedger 07-28-2015 05:07 PM

Go and stand in the corner and think about what you've done !
:)


All times are GMT -5. The time now is 05:41 PM.