This is the mail archive of the cygwin-talk mailing list for the cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Robert Schmidt wrote: Oh, I missed that qualifier. So, what you really mean is that sed is a total red herring as you aren't actually using sed but something else entirely in the real application? Anyway, if you absolutely must have a d2u that is line buffered instead of full buffered then you can use
perl -pe 'BEGIN { $| = 1; } s,\r$,,;' | whatever_the_actual_thing_is
#!/bin/bash # read stalls on 0x0d in input, d2u fixes that, but introduces buffering d2u | while true do read -r || exit echo `date +"%F %T"` "$REPLY" done
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |