View Single Post
Posts: 30 | Thanked: 42 times | Joined on Oct 2010 @ Russia
#14
Mentalist Traceur, "echo" prints it's command-line arguments to stdout, so "echo >script.py" will just create an empty file. If "cat" is executed without arguments, it copies stdin to stdout, so it will put into file everything you type on console. Ah, and afer paste you should type Ctrl-D, or "cat" will be listening for input forever.
 

The Following User Says Thank You to butler For This Useful Post: