View previous topic :: View next topic |
Author |
Message |
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Mon Dec 06, 2004 1:14 am Post subject: svn |
|
|
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 |
|
|
ThomasK
Joined: 09 Nov 2004 Posts: 5 Location: Old Europe :)
|
Posted: Mon Dec 06, 2004 2:47 am Post subject: Re: svn |
|
|
Ant wrote: |
svn's .svn directories mess up my grep!
|
Code: | grep -v "\(/\\.\)\|\(^\\.[^/]*$\)" |
remove all lines containing hidden files or dirs |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Mon Dec 06, 2004 4:06 pm Post subject: Re: svn |
|
|
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 |
|
|
ThomasK
Joined: 09 Nov 2004 Posts: 5 Location: Old Europe :)
|
Posted: Mon Dec 06, 2004 9:03 pm Post subject: Re: svn |
|
|
Ant wrote: |
I hoped it would be simpler.
|
mhh, what was I smoking
If you make sure that all your listings starts with "./" or "/" you can use
|
|
Back to top |
|
|
|