|
From: | Andreas Röhler |
Subject: | Re: Pipe bash file contents to shell |
Date: | Thu, 30 Jun 2011 20:01:29 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10 |
Am 30.06.2011 16:33, schrieb linuxfever:
Hello all, I was wondering whether there is a way to pass contents of a bash script file into a shell buffer in Emacs (23.2). For example, if my bash file contains a single line "ls -al", I would like to highlight that line, and by pressing a keybind, have the command executed and its output shown in the shell buffer. Is it at all possible? Thanks for any suggestions!
eh, correcting my previous messages. "shell-command-on-region" is here not the right starting point. So let me consider your question again: you have a bash-script. To which directory would `ls -al' point? How it's written? Basically it's possible.However, maybe to get the results you want, Emacs provides better ways, for example via dired.
Andreas
[Prev in Thread] | Current Thread | [Next in Thread] |