all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Aleksandar Simić" <asimic@gmail.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: grep
Date: Thu, 9 Mar 2017 07:59:40 +0000	[thread overview]
Message-ID: <51819B1A-D571-4536-93DD-20A610195347@gmail.com> (raw)
In-Reply-To: <DM5PR20MB1242B7D383FC23F933C37494BA210@DM5PR20MB1242.namprd20.prod.outlook.com>



> 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


  parent reply	other threads:[~2017-03-09  7:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Aleksandar Simić [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51819B1A-D571-4536-93DD-20A610195347@gmail.com \
    --to=asimic@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.