2
votes
1answer
287 views

Copy multiple lines from Windows Command prompt without forced newlines

Is it possible to copy multiple lines from the Windows Command Prompt without it inserting a new line where each line reaches the end of the terminal? For example, if I have the following line in the ...
4
votes
3answers
12k views

How can I insert a new line in a cmd.exe command?

I'm trying to execute a command on cmd.exe, with a line break or new line as part of the command, like below: command -option:text whatever But every new line executes the command, instead of ...
1
vote
5answers
2k views

Insert a newline in a perl -e statement?

Consider the following Perl one-liner: perl -e '$x; $y;' I'm executing this command in bash and I'd like to insert a newline (\n) between the ; and $y. I'd like to know how to do this in two ...