shell - Grep Arguments Not Working -


i have code grep through files in cpanel unsure arguments use in shell command.

currently line of code going shell_exec():

$command = "`grep -il '.$term.' ./*`"; 

this searching files in folder script in. adding -r argument not fix nor -d recursive.

i have tried make

find . -exec grep -il '.$term.' {} \; 

which did not work.

i want ignore case show file name , not contents, want root directory lower directories.

would using --include in manner @ all? have no clue why -r , -d recursive wouldn't work.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -