I want to copy multiple lines (splitted by Enter key) from, for example, notepad and then paste it into new variable in CMD or Bash console and after that do some operations on it.
Although it's quite easy in PowerShell (I simply type
then paste copied lines and simply add
at the end) in predecessor it's much more complicated since CMD interpret each enter as "execute". Is there any other way to accomplish it, instead of save as external text file?