Does <CRLF> represent a (binary control character) carriage return OR a <CR><LF> combination? Which should persist at line end? Are you aware that both the original data as well as the result will be difficult to be dealt with by usual *nix text tools?
Are there more lines like above in your file? How are those separated?
Sorry I keep nagging. How are the lines separated, and how differs that from the in-field control characters? Sure there's NO <LF> char?
Please post the output of
0000000 32 30 31 36 2d 31 31 2d 33 30 7c 32 30 31 36 2d
2 0 1 6 - 1 1 - 3 0 | 2 0 1 6 -
0000020 32 30 31 37 7c 32 30 31 36 2d 31 31 2d 33 30 7c
2 0 1 7 | 2 0 1 6 - 1 1 - 3 0 |
0000040 31 32 33 34 7c 73 6f 6d 65 66 69 6c 65 2e 74 78
1 2 3 4 | s o m e f i l e . t x
0000060 74 7c 50 72 6f 64 75 63 74 69 6f 6e 7c 4e 6f 7c
t | P r o d u c t i o n | N o |
0000100 7c 7c 4c 4f 7c 7c 43 65 6e 74 65 72 7c 7c 4e 6f
| | L O | | C e n t e r | | N o
0000120 7c 7c 7c 31 32 33 34 7c 49 6d 70 6f 72 74 61 6e
| | | 1 2 3 4 | I m p o r t a n
0000140 74 7c 3c 20 24 32 30 20 4d 69 6c 6c 69 6f 6e 7c
t | < $ 2 0 M i l l i o n |
0000160 51 75 61 72 74 65 72 6c 79 7c 7c 7c 7c 32 30 31
Q u a r t e r l y | | | | 2 0 1
0000200 31 2d 30 32 2d 32 34 7c 7c 7c 53 6f 6d 65 20 64
1 - 0 2 - 2 4 | | | S o m e d
0000220 65 73 63 72 69 70 74 69 6f 6e 20 68 65 72 65 7c
e s c r i p t i o n h e r e |
0000240 0d 0a 0d 0a 0d 0a 0d 0a 0d 0a 0d 0a 55 70 64 61
\r \n \r \n \r \n \r \n \r \n \r \n U p d a
0000260 74 65 20 73 6f 6d 65 74 68 69 6e 67 7c 74 65 73
t e s o m e t h i n g | t e s
0000300 74 66 69 6c 65 2e 74 78 74 7c 48 69 73 68 61 6d
t f i l e . t x t | H i s h a m
0000320 0d 0a
\r \n
0000322
Sample record of how it appears in the file. The CRLF can honestly appear in any one of the columns prior to the last.
That's one single line, obviously. And, obviously, as anticipated, we're talking of <CR><LF> combinations. How do you tell one line from another? Do they all have the same field count? Do they all have the same <CR> count?