Hacker News new | ask | show | jobs
by miki123211 2412 days ago
cat /dev/stdin > yourfile.txt

ctrl+d to exit.

You can edit the current line (to fix spelling misteaks) but not anything else. You can reference as much as your terminal shows.

This is a perfect example of the superiority of the Unix way. Simple programs that do one thing and work well together, combined into things their authors didn't think of. This is my idea of beauty.

1 comments

  cat > yourfile.txt
:)
I knew there was a faster way to do it. I just didn't know how. Thank you very much.