need some help in grep cmd
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
-
Hello :) There are several results on a search engine such as Google that you might find helpful. For example, here is one third-party URL I found: [url=http://stackoverflow.com/questions/19962645/bash-function-grep-exclude-dir-not-working]bash function grep --exclude-dir not working - Stack Overflow Thank you. 0
Please sign in to leave a comment.
Comments
1 comment