whm-expert

Active Member
Nov 10, 2012
40
0
6
cPanel Access Level
DataCenter Provider
Hello

I want to grep all home directory(all website) for this word "version".
i am use the command below and its work successfully.
grep -RPnDskip "(version) *\(" /home/*/public_html


Now i want to use the same command to grep all home directory(all website) for this word "version" except the USER (portal) there for i try to use "exclude-dir" but its not work

grep --exclude-dir=/portal/data/ -RPnDskip "(version) *\(" /home/*/public_html

i want to exclude this path /home/portal/data/



please can any one help me to fix the command?



Best regards