Browse Source

Removed useless use of cat

Agam Agarwal 8 years ago
parent
commit
3250be5beb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/common/nc.md

+ 2 - 2
pages/common/nc.md

@@ -16,11 +16,11 @@
 
 - Serve a file:
 
-`cat somefile.txt | nc -l {{port}}`
+`nc -l {{port}} < {{somefile.txt}}`
 
 - Receive a file:
 
-`nc {{ip_address}} {{port}} > somefile.txt`
+`nc {{ip_address}} {{port}} > {{somefile.txt}}`
 
 - Server stay up after client detach: