Results 1 to 4 of 4
Hello!
I'm trying to search the string "Listen" in a few files (config files).
I made
find /apps/apache* -exec grep -H Listen {} \;
but the result list is very ...
- 05-09-2011 #1Just Joined!
- Join Date
- May 2011
- Location
- Madid España
- Posts
- 2
Help with find command
Hello!
I'm trying to search the string "Listen" in a few files (config files).
I made
find /apps/apache* -exec grep -H Listen {} \;
but the result list is very long.
How i make a "grep -v" whith this command?
Ty!
- 05-09-2011 #2Just Joined!
- Join Date
- May 2011
- Location
- Madid España
- Posts
- 2
... autoresponse
find /aplicaciones/apache* -exec grep -H Listen {} \; | grep -v "#"
- 05-09-2011 #3
Thanks for the answer.Hope that helps somebody
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 05-09-2011 #4
Note that /apps/apache* can expand to a large number of files and thus lead to problems. fgrep should be a better way that is faster and easier to understand.


Reply With Quote