FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

svn

 
Post new topic   Reply to topic     Forum Index -> Site
View previous topic :: View next topic  
Author Message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Mon Dec 06, 2004 1:14 am    Post subject: svn Reply with quote

ok this should probably go to a svn forum.

svn's .svn directories mess up my grep!

how do you work arround that?

Ant
Back to top
View user's profile Send private message
ThomasK



Joined: 09 Nov 2004
Posts: 5
Location: Old Europe :)

PostPosted: Mon Dec 06, 2004 2:47 am    Post subject: Re: svn Reply with quote

Ant wrote:

svn's .svn directories mess up my grep!


Code:
grep -v "\(/\\.\)\|\(^\\.[^/]*$\)"


remove all lines containing hidden files or dirs
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Mon Dec 06, 2004 4:06 pm    Post subject: Re: svn Reply with quote

ThomasK wrote:
grep -v "\(/\\.\)\|\(^\\.[^/]*$\)"


thank you, I knew it could be done.
I hoped it would be simpler.
I don't use regexp often - it's easy to forget - I can't even read that.

Ant
Back to top
View user's profile Send private message
ThomasK



Joined: 09 Nov 2004
Posts: 5
Location: Old Europe :)

PostPosted: Mon Dec 06, 2004 9:03 pm    Post subject: Re: svn Reply with quote

Ant wrote:

I hoped it would be simpler.


mhh, what was I smoking Rolling Eyes

If you make sure that all your listings starts with "./" or "/" you can use

Code:
grep -v "/\\."
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Site All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group