From: Friedrich Dominicus <frido@q-software-solutions.com>
Subject: Re: Piped insert-file?
Date: 14 Nov 2002 18:26:47 +0100 [thread overview]
Message-ID: <87znscdpuw.fsf@fbigm.here> (raw)
In-Reply-To: ar0k64$q5o$1@reader1.panix.com
ginak <gina02122000@yahoo.com> writes:
> Is there a way (without creating a temporary file) to insert into a
> buffer the results of running a file's contents through a Unix pipe?
Some more words would be helpful. you can run
M-x shell-command-on-region
line-1
line-2
line-4
line-10
line-5
Making it in a region and run sort on it yields
line-1
line-10
line-2
line-4
line-5
other option you may have run
(shell-command-to-string "ls -l /tmp/*")
C-u C-x C-e insert that stuff at point here
If you want it interactive you have to write a wrapper for it and than
there is with-output-to-temp-buffer which may of some use too
Regards
Friedrich
prev parent reply other threads:[~2002-11-14 17:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-14 16:49 Piped insert-file? ginak
2002-11-14 16:52 ` Barry Margolin
2002-11-14 18:10 ` ginak
2002-11-14 19:10 ` Stefan Monnier <foo@acm.com>
2002-11-14 19:13 ` Barry Margolin
2002-11-14 17:26 ` Friedrich Dominicus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87znscdpuw.fsf@fbigm.here \
--to=frido@q-software-solutions.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).