[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Piped insert-file?
From: |
Friedrich Dominicus |
Subject: |
Re: Piped insert-file? |
Date: |
14 Nov 2002 18:26:47 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) |
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