1

There was a recent change on the server I do most of my work on and all PHP exec()'s now need absolute paths. Its faster than asking IT to ask it here.

So, does anyone know where grep is by default?

4

2 回答 2

4

For future use you should familiarize yourself with the "which" command. It will go through your default search path looking for an executable. Normally the system paths will be included therein. Use the -a option to find all versions of a program on your path.

So "which grep" should do the job if your path is set up correctly.

于 2009-07-02T20:23:56.580 回答
1

Should be in /bin/grep

于 2009-07-02T19:50:19.940 回答