all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 'grep' + long list of files
@ 2006-06-29  7:15 Le Wang
  0 siblings, 0 replies; only message in thread
From: Le Wang @ 2006-06-29  7:15 UTC (permalink / raw)


Hi,

I have a variable which holds a list of files, and I need to grep
through them for some expression.

The problem is that the command with the full list of files becomes
longer than the maximum allowed on my OS (Windows).  I've thought of
some possible solutions.

1.  Save list to temp file, use "xargs".  This is not ideal.  I don't
want to fumble with with temporary files.  BUT this is easy to
implement with a minimal lisp code and a shell/perl script.

2.  Make several smaller lists, run grep on each, and merge the output.
 Again, this is hacky and not ideal.  And I can't see how to do this
from looking at compile.el.

3.  Get Emacs to pipe the list into xargs as a string.  This is the
preferred solution, but it's not immediately clear to me how to do this
in conjunction with compilation mode.

I can't get xargs to recognize ^@ (read as null, but I can't type it
into this browser windos) as a separator while running in Emacs.

I already build this list for completion purposes, so grep-find doesn't
apply
here.  Is There is an obvious solution I'm just not seeing?

Thanks.

--
Le

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-29  7:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-29  7:15 'grep' + long list of files Le Wang

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.