RE: Join command fails to output fields on input file with DOS line endings.

2019-07-23 Thread Andy Hall
> On 7/22/2019 12:59 PM, Eliot Moss wrote: > On 7/22/2019 12:50 PM, Andy Hall wrote: > > This behavior of join surprised me: > > > > $ join -1 3 <(echo a b col3 c d | unix2dos) <(echo col3 f2 f3 f4 f5) > > f2 f3 f4 f5 > > > > Join parses the input line well enough to execute the join, but the >

RE: Join command fails to output fields on input file with DOS line endings.

2019-07-23 Thread Lemke, Michael ST/HZA-ZIC2
On July 22, 2019 9:51 PM Andy Hall wrote: >This behavior of join surprised me: > >$ join -1 3 <(echo a b col3 c d | unix2dos) <(echo col3 f2 f3 f4 f5) > f2 f3 f4 f5 See if this reduces your surprise somewhat: $ join -1 3 <(echo a b col3 c d | unix2dos) <(echo col3 f2 f3 f4 f5) | cat -A -- Pro

Re: Join command fails to output fields on input file with DOS line endings.

2019-07-22 Thread Andrey Repin
Greetings, Andy Hall! > This behavior of join surprised me: > $ join -1 3 <(echo a b col3 c d | unix2dos) <(echo col3 f2 f3 f4 f5) > f2 f3 f4 f5 > Join parses the input line well enough to execute the join, but the > presence of the DOS line endings suppresses the > output of fields from the

Re: Join command fails to output fields on input file with DOS line endings.

2019-07-22 Thread Eliot Moss
On 7/22/2019 3:50 PM, Andy Hall wrote: This behavior of join surprised me: $ join -1 3 <(echo a b col3 c d | unix2dos) <(echo col3 f2 f3 f4 f5) f2 f3 f4 f5 Join parses the input line well enough to execute the join, but the presence of the DOS line endings suppresses the output of fields fr

Join command fails to output fields on input file with DOS line endings.

2019-07-22 Thread Andy Hall
This behavior of join surprised me: $ join -1 3 <(echo a b col3 c d | unix2dos) <(echo col3 f2 f3 f4 f5) f2 f3 f4 f5 Join parses the input line well enough to execute the join, but the presence of the DOS line endings suppresses the output of fields from the first input. Compare with $ join