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
Post a Comment