Post History
I copy-paste several commands at once from a markdown editor (Typora) to Bash in a Putty window terminal; the file I work with reads as follows (empty lines included): $ non sed command 1 $ non s...
#2: Post edited
- I copy-paste several commands at once from a markdown editor (Typora) to Bash in a Putty window terminal; the file I work with reads as follows (empty lines included):
- ```shell
- $ non sed command 1
- $ non sed command 2
- $ sed command 1
- $ sed command 2
- ```
- I want to just copy-paste everything and execute by pressing enter, but without using `&&` or `;` or `()`.
- What would be a good way to do so? Perhaps a function? Perhaps a Heredocument?
- I copy-paste several commands at once from a markdown editor (Typora) to Bash in a Putty window terminal; the file I work with reads as follows (empty lines included):
- ```shell
- $ non sed command 1
- $ non sed command 2
- $ sed command 1
- $ sed command 2
- ```
- I want to just copy-paste everything and execute by pressing enter, but without using `&&` or `;` or `()`.
- What would be a good way to do so? Perhaps a function? Perhaps a Heredocument?
#1: Initial revision
Running several commands without && or ; or ()
I copy-paste several commands at once from a markdown editor (Typora) to Bash in a Putty window terminal; the file I work with reads as follows (empty lines included): ```shell $ non sed command 1 $ non sed command 2 $ sed command 1 $ sed command 2 ``` I want to just copy-paste everything and execute by pressing enter, but without using `&&` or `;` or `()`. What would be a good way to do so? Perhaps a function? Perhaps a Heredocument?