Skip to main content
6 events
when toggle format what by license comment
Sep 23, 2016 at 19:34 comment added John1024 Sometimes, it is tricky to figure out where the troublesome buffer is. For starters, try: awk -F'\r' '{print $NF; fflush()}' >outfile
Sep 23, 2016 at 19:21 comment added sjngm I think I have to come back on this. I went with your last example and I learned that this somehow buffers the output and writes it all in one step to Outfile at the end of the program. Is there a way to enforce writing after each \n found? As in "write each line as soon as you have it" to Outfile?
Sep 14, 2016 at 7:17 vote accept sjngm
Sep 14, 2016 at 7:17 comment added sjngm Thanks for that thorough explanation! I really admire those who understand all that redirection-subshell-stuff and know their syntax... I tried your last example and it seems to work better than sed due to the large amount of characters in such a "line".
Sep 14, 2016 at 6:51 history edited John1024 CC BY-SA 3.0
added 182 characters in body
Sep 14, 2016 at 6:46 history answered John1024 CC BY-SA 3.0