I login to a computer with SSH. In my home directory, there is a file called test.sh
with a bunch of BASH code in it. I start editing it with emacs -nw test.sh
. It is a large file, and I want to test only a portion of the code.
How can I highlight a portion of code and tell Emacs to run only that portion in my home (i.e., working) directory and show the output within Emacs?