Question

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?

Was it helpful?

Solution

Should be in /bin/grep

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top