How do I end standard input without a newline character?
If you do not want to append a newline to your input, just press Ctrl-D twice after you input
Soure: command line - How do I end standard input without a newline character? - Ask Ubuntu
This is useful on occasion, especially when a newline would break a consuming program because it expected a string without whitespace.