I run a command like nc, and it output something like `{"foo1":"bar1"}{"foo2":"bar2"}` without line break continuously. 
I want to change the output as following:

```
{"foo1":"bar1"}
{"foo2":"bar2"}

```

I tried `nc -U /dev/mysocket | sed 's/}/}\n/g'`, but it doesn't work. Seems `sed` doesn't process input if it doesn't have '\n'.

In case of you don't have `nc` server which can output above sample. It's more like the following output by hello.c:

```
#include <stdio.h>
#include <unistd.h>

int main()
{
    while (1) {
            printf("{\"foo1\":\"bar1\"}");
            fflush(0);
            sleep(1);
    }

    return 0;
}

```

So the case is turned out to:
`gcc -o hello hello.c; ./hello | sed 's/}/}\n/g'` won't work. Seems sed doesn't even process input stream if there's no '\n'.
Any ideas on how to solve this issue? Thank you.