PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Sep 17, 2019 5:03 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Mon Dec 01, 2008 12:18 am 
Offline
DevNet Evangelist

Joined: Tue Dec 21, 2004 6:00 pm
Posts: 6267
Location: Winnipeg


Top
 Profile  
 
PostPosted: Mon Dec 01, 2008 4:09 am 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4313
Location: Sofia, Bulgaria

_________________
There are 10 types of people in this world, those who understand binary and those who don't


Top
 Profile  
 
PostPosted: Mon Dec 01, 2008 8:28 pm 
Offline
DevNet Evangelist

Joined: Tue Dec 21, 2004 6:00 pm
Posts: 6267
Location: Winnipeg
Dude...your the man. 8)

Awesome...but I assume $where is project path?

Killer stuff...thanks again :)


Top
 Profile  
 
PostPosted: Sat Dec 06, 2008 5:38 pm 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
I usually just do this:

Syntax: [ Download ] [ Hide ]
grep something /path | grep -v .svn


grep does have an --exclude=pattern option too.


Top
 Profile  
 
PostPosted: Sat Dec 06, 2008 8:17 pm 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4313
Location: Sofia, Bulgaria
It's a too much resource consuming solution ;)
I mean - grep for a text is slower than pre-excluding directories not to be searched by using find.

And I'm not sure whether the --exclude=PATTERN option will match against full path string or file name string.

_________________
There are 10 types of people in this world, those who understand binary and those who don't


Top
 Profile  
 
PostPosted: Wed Mar 31, 2010 7:44 pm 
Offline
Forum Newbie

Joined: Wed Mar 31, 2010 7:40 pm
Posts: 1
Use a recent version of grep (2.5.3 or better) so you can use the --exclude-dir switch that does work as expected:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group