* grep
@ 2017-03-09 3:49 Fred Stanke
2017-03-09 7:02 ` grep Danny YUE
` (3 more replies)
0 siblings, 4 replies; 13+ messages in thread
From: Fred Stanke @ 2017-03-09 3:49 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
I have emacs installed at
C:\Applications\Emacs\bin\runemacs.exe
It uses, *I believe*
c:/Users/Fred/AppData/Roaming/.emacs.d/init.el
when I try to do a grep, I get this error:
-*- mode: grep; default-directory: "c:/Users/Fred/" -*-
Grep started at Wed Mar 8 19:46:54
grep -n the *.txt NUL
'grep' is not recognized as an internal or external command,
operable program or batch file.
Grep exited abnormally with code 1 at Wed Mar 8 19:46:54
What do I need to do to get grep to work.
(FYI: I have deleted at least one Cygwin installation I had tried.)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: grep
2017-03-09 3:49 grep Fred Stanke
@ 2017-03-09 7:02 ` Danny YUE
2017-03-09 11:04 ` grep Emanuel Berg
2017-03-09 16:08 ` grep Fred Stanke
2017-03-09 7:59 ` grep Aleksandar Simić
` (2 subsequent siblings)
3 siblings, 2 replies; 13+ messages in thread
From: Danny YUE @ 2017-03-09 7:02 UTC (permalink / raw)
To: Fred Stanke; +Cc: help-gnu-emacs@gnu.org
Just for mentioning another option if you need it:
Use M-x eshell which has a built-in grep facility.
Danny
Fred Stanke writes:
> I have emacs installed at
> C:\Applications\Emacs\bin\runemacs.exe
> It uses, *I believe*
> c:/Users/Fred/AppData/Roaming/.emacs.d/init.el
>
> when I try to do a grep, I get this error:
>
> -*- mode: grep; default-directory: "c:/Users/Fred/" -*-
> Grep started at Wed Mar 8 19:46:54
>
> grep -n the *.txt NUL
> 'grep' is not recognized as an internal or external command,
> operable program or batch file.
>
> Grep exited abnormally with code 1 at Wed Mar 8 19:46:54
>
> What do I need to do to get grep to work.
> (FYI: I have deleted at least one Cygwin installation I had tried.)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: grep
2017-03-09 7:02 ` grep Danny YUE
@ 2017-03-09 11:04 ` Emanuel Berg
2017-03-09 11:25 ` grep Danny YUE
2017-03-09 16:08 ` grep Fred Stanke
1 sibling, 1 reply; 13+ messages in thread
From: Emanuel Berg @ 2017-03-09 11:04 UTC (permalink / raw)
To: help-gnu-emacs
Danny YUE wrote:
> Just for mentioning another option if you
> need it: Use M-x eshell which has a built-in
> grep facility.
What about M-x shell RET and then plain /bin/grep ?
--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
- so far: 69 Blogomatic articles -
with: #moasen @ irc.freenode.net 6667
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: grep
2017-03-09 11:04 ` grep Emanuel Berg
@ 2017-03-09 11:25 ` Danny YUE
2017-03-09 11:54 ` grep Emanuel Berg
0 siblings, 1 reply; 13+ messages in thread
From: Danny YUE @ 2017-03-09 11:25 UTC (permalink / raw)
To: Emanuel Berg; +Cc: help-gnu-emacs
Emanuel, are you talking to me...?
The OP's problem might be caused by a incorrectly configured PATH,
which I can't help because I'm not familiar with Windows/Emacs.
However anyway EShell grep should work by default.
For those who may need to know:
In EShell if you just use "grep" in the command line, it invokes
built-in grep facility implemented by emacs lisp.
And if you want to use system grep, you need to specify it by a leading
star like "*grep".
See below eshell log:
~ $ which grep
eshell/grep is a compiled Lisp function in ‘em-unix.el’
~ $ which *grep
/bin/grep
Emanuel Berg writes:
> Danny YUE wrote:
>
>> Just for mentioning another option if you
>> need it: Use M-x eshell which has a built-in
>> grep facility.
>
> What about M-x shell RET and then plain /bin/grep ?
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: grep
2017-03-09 7:02 ` grep Danny YUE
2017-03-09 11:04 ` grep Emanuel Berg
@ 2017-03-09 16:08 ` Fred Stanke
1 sibling, 0 replies; 13+ messages in thread
From: Fred Stanke @ 2017-03-09 16:08 UTC (permalink / raw)
To: Danny YUE, Anast Gramm; +Cc: help-gnu-emacs@gnu.org
Woo hoo! Thanks guys!
-----Original Message-----
From: Danny YUE [mailto:sheepduke@gmail.com]
Sent: Wednesday, March 8, 2017 11:03 PM
To: Fred Stanke <stanke@primenanoinc.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: grep
Just for mentioning another option if you need it:
Use M-x eshell which has a built-in grep facility.
Danny
Fred Stanke writes:
> I have emacs installed at
> C:\Applications\Emacs\bin\runemacs.exe
> It uses, *I believe*
> c:/Users/Fred/AppData/Roaming/.emacs.d/init.el
>
> when I try to do a grep, I get this error:
>
> -*- mode: grep; default-directory: "c:/Users/Fred/" -*- Grep started
> at Wed Mar 8 19:46:54
>
> grep -n the *.txt NUL
> 'grep' is not recognized as an internal or external command, operable
> program or batch file.
>
> Grep exited abnormally with code 1 at Wed Mar 8 19:46:54
>
> What do I need to do to get grep to work.
> (FYI: I have deleted at least one Cygwin installation I had tried.)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: grep
2017-03-09 3:49 grep Fred Stanke
2017-03-09 7:02 ` grep Danny YUE
@ 2017-03-09 7:59 ` Aleksandar Simić
2017-03-09 8:37 ` grep Emanuel Berg
2017-03-09 15:39 ` grep Eli Zaretskii
3 siblings, 0 replies; 13+ messages in thread
From: Aleksandar Simić @ 2017-03-09 7:59 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
> On 9 Mar 2017, at 03:49, Fred Stanke <stanke@primenanoinc.com> wrote:
>
> I have emacs installed at
> C:\Applications\Emacs\bin\runemacs.exe
> It uses, *I believe*
> c:/Users/Fred/AppData/Roaming/.emacs.d/init.el
To reassure yourself, run:
C-x C-f ~/.emacs.d/init.el
If it opens your config file, you're good. If not, you should move your config into that location.
> when I try to do a grep, I get this error:
>
> -*- mode: grep; default-directory: "c:/Users/Fred/" -*-
> Grep started at Wed Mar 8 19:46:54
>
> grep -n the *.txt NUL
> 'grep' is not recognized as an internal or external command,
> operable program or batch file.
>
> Grep exited abnormally with code 1 at Wed Mar 8 19:46:54
>
> What do I need to do to get grep to work.
> (FYI: I have deleted at least one Cygwin installation I had tried.)
It looks like the command grep is not in your path.
To ensure that it is, open the terminal where you usually run grep from and type:
which grep
Note the path (if grep is installed).
Then in Emacs:
M-x eshell RET
which grep RET
echo $PATH RET
Check if grep is found in Eshell's path. If it isn't, you should add it.
Hope it helps
Aleksandar
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: grep
2017-03-09 3:49 grep Fred Stanke
2017-03-09 7:02 ` grep Danny YUE
2017-03-09 7:59 ` grep Aleksandar Simić
@ 2017-03-09 8:37 ` Emanuel Berg
2017-03-09 15:39 ` grep Eli Zaretskii
3 siblings, 0 replies; 13+ messages in thread
From: Emanuel Berg @ 2017-03-09 8:37 UTC (permalink / raw)
To: help-gnu-emacs
Fred Stanke wrote:
> I have emacs installed at
> C:\Applications\Emacs\bin\runemacs.exe It uses,
> *I believe*
> c:/Users/Fred/AppData/Roaming/.emacs.d/init.el
Man, it actually looks like that?
Things sure have changed in my
cyberspace downtime!
--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
- so far: 69 Blogomatic articles -
with: #moasen @ irc.freenode.net 6667
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: grep
2017-03-09 3:49 grep Fred Stanke
` (2 preceding siblings ...)
2017-03-09 8:37 ` grep Emanuel Berg
@ 2017-03-09 15:39 ` Eli Zaretskii
3 siblings, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2017-03-09 15:39 UTC (permalink / raw)
To: help-gnu-emacs
> From: Fred Stanke <stanke@primenanoinc.com>
> Date: Thu, 9 Mar 2017 03:49:12 +0000
> when I try to do a grep, I get this error:
>
> -*- mode: grep; default-directory: "c:/Users/Fred/" -*-
> Grep started at Wed Mar 8 19:46:54
>
> grep -n the *.txt NUL
> 'grep' is not recognized as an internal or external command,
> operable program or batch file.
>
> Grep exited abnormally with code 1 at Wed Mar 8 19:46:54
>
> What do I need to do to get grep to work.
You need to install grep.exe from one of the places it's available on
the net. Put it in the same directory where you keep emacs.exe, or
some other directory on your PATH.
^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <mailman.4610.1050362510.21513.help-gnu-emacs@gnu.org>]
* grep
@ 2003-04-14 23:13 Lars Kristiansson
0 siblings, 0 replies; 13+ messages in thread
From: Lars Kristiansson @ 2003-04-14 23:13 UTC (permalink / raw)
How to grep in emacs for windows? Can one download the source to grep for
windows?
____________________________________________________________________________
_Dr_Xem@cs__
M.v.h. Lasse Kristansson.
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2017-03-09 16:08 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-09 3:49 grep Fred Stanke
2017-03-09 7:02 ` grep Danny YUE
2017-03-09 11:04 ` grep Emanuel Berg
2017-03-09 11:25 ` grep Danny YUE
2017-03-09 11:54 ` grep Emanuel Berg
2017-03-09 16:08 ` grep Fred Stanke
2017-03-09 7:59 ` grep Aleksandar Simić
2017-03-09 8:37 ` grep Emanuel Berg
2017-03-09 15:39 ` grep Eli Zaretskii
[not found] <mailman.4610.1050362510.21513.help-gnu-emacs@gnu.org>
2003-04-15 7:12 ` grep Kai Großjohann
2003-04-15 15:18 ` grep Kevin Rodgers
2003-04-16 20:21 ` grep Barman Brakjoller
-- strict thread matches above, loose matches on Subject: below --
2003-04-14 23:13 grep Lars Kristiansson
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).