[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep excludes
From: |
Rusi |
Subject: |
Re: grep excludes |
Date: |
Tue, 5 Jul 2016 20:24:23 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Wednesday, July 6, 2016 at 8:34:35 AM UTC+5:30, Emanuel Berg wrote:
> Rustom Mody writes:
>
> > Would it not be nice to have a customize
> > option that reads this file (if non-nil)
> > rather than filling a screen-full of
> > irrelevant excludes??
>
> Rather than excluding the whole computer one
> typically use the input file list to limit the
> search space...
Just to be clear this is the default behavior of lgrep [sorry should have been
clear when I said 'grep']
ie emacs started -Q
M-x lgrep
Giving all its 3 options
1. Search for
2. In files
3. In directory
This is its output
For rgrep its bigger:
find . -type d \( -path \*/SCCS -o -path \*/RCS -o -path \*/CVS -o -path
\*/MCVS -o -path \*/.svn -o -path \*/.git -o -path \*/.hg -o -path \*/.bzr -o
-path \*/_MTN -o -path \*/_darcs -o -path \*/\{arch\} \) -prune -o \! -type d
\( -name .\#\* -o -name \*.o -o -name \*\~ -o -name \*.bin -o -name \*.lbin -o
-name \*.so -o -name \*.a -o -name \*.ln -o -name \*.blg -o -name \*.bbl -o
-name \*.elc -o -name \*.lof -o -name \*.glo -o -name \*.idx -o -name \*.lot -o
-name \*.fmt -o -name \*.tfm -o -name \*.class -o -name \*.fas -o -name \*.lib
-o -name \*.mem -o -name \*.x86f -o -name \*.sparcf -o -name \*.dfsl -o -name
\*.pfsl -o -name \*.d64fsl -o -name \*.p64fsl -o -name \*.lx64fsl -o -name
\*.lx32fsl -o -name \*.dx64fsl -o -name \*.dx32fsl -o -name \*.fx64fsl -o -name
\*.fx32fsl -o -name \*.sx64fsl -o -name \*.sx32fsl -o -name \*.wx64fsl -o -name
\*.wx32fsl -o -name \*.fasl -o -name \*.ufsl -o -name \*.fsl -o -name \*.dxl -o
-name \*.lo -o -name \*.la -o -name \*.gmo -o -name \*.mo -o -name \*.toc -o
-name \*.aux -o -name \*.cp -o -name \*.fn -o -name \*.ky -o -name \*.pg -o
-name \*.tp -o -name \*.vr -o -name \*.cps -o -name \*.fns -o -name \*.kys -o
-name \*.pgs -o -name \*.tps -o -name \*.vrs -o -name \*.pyc -o -name \*.pyo \)
-prune -o -type f \( -name \* -o -name .\* \) -exec grep -i --color -nH -e
emacs {} +
Seems to be just the value of 'completion-ignored-extensions' -- which is fine
I'm just asking for it to go somewhere where its not (SO!) visible
- Re: grep excludes, Emanuel Berg, 2016/07/05
- Re: grep excludes,
Rusi <=
- Re: grep excludes, Emanuel Berg, 2016/07/06
- Re: grep excludes, B.V. Raghav, 2016/07/06
- Re: grep excludes, B.V. Raghav, 2016/07/07
- Message not available
- Re: grep excludes, Rusi, 2016/07/07
- Re: grep excludes, Rusi, 2016/07/07
- Re: grep excludes, Rusi, 2016/07/07
- Re: grep excludes, B.V. Raghav, 2016/07/09