cat hello.txt | nc -l 14223 > hello.txt
hello.txt originally has "Hello!" in it. I know if I use mypipe instead of hello.txt, then it works. But I don't quite understand: (1) why netcat closes its connection automatically (2) why nothing shows up on both windows (3) why hello.txt is erased.