You can simulate EOF with CTRL+D (for *nix) or CTRL+Z (for Windows) from command line. In widows, when you are ready to complete the input: 1.press the Enter key 2.then press Ctrl+Z 3.then Enter to complete the input.