[jasspa] piping it in
- This sort of an rtfm-question, but...
?what? is the correct syntax for invoking grep on a buffer,
and piping it into another (preferably on-the-fly-one)?
Similarly for 'sort' (with args); uniq etc. I must be doing something
wrong, 'cause no dice.
Soon frustrated-no-mo' i-hope
this post <http://tech.groups.yahoo.com/group/jasspa/message/2272>
- Ian wrote:
> This sort of an rtfm-question, but...If you really do want to run a shell command on the actual contents of a
> ?what? is the correct syntax for invoking grep on a buffer,
> and piping it into another (preferably on-the-fly-one)?
buffer from the command line then use
filter-buffer "<command line with stdin/stdout options>"
I do think that this is actually what you want to do.
For grep <files> then use "M-x grep" the variable "%grep-com" is the
The command "M-x uniq" and "M-x sort" work between point and mark and
are buffer equivalents of the standard UNIX commands.
For standard command line stuff then simply use "ipipe-shell-command"
and add the appropriate command line, the output is left in a '*'
>Sorry for the late response - not been around.
> Similarly for 'sort' (with args); uniq etc. I must be doing something
> wrong, 'cause no dice.
> Soon frustrated-no-mo' i-hope
Hope that helps.