[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: implementing pre-commit-hook to prevent overwriting files under tags-dir

From: Marc Lustig <ml_at_marclustig.com>
Date: Sun, 27 Sep 2009 00:29:54 -0700 (PDT)

Looks lovely, but we use GNU sed Version 4.1.2 on Linux, and there is no -E
option available :(
Any other way to get this working?

Ryan Schmidt-60 wrote:
>
> On Sep 26, 2009, at 14:41, Marc Lustig wrote:
>
>> Could somebody advise me how to extract
>> aaa/bbb/tags/version
>> from
>> aaa/bbb/tags/version/xxx
>> using some bash-command like sed.
>>
>> The string before tags and after tags is arbitrary.
>
>
> $ echo aaa/bbb/tags/version/xxx/yyy | sed -E "s|(tags/[^/]+).*$|\1|"
> aaa/bbb/tags/version
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2400803
>
> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe_at_subversion.tigris.org].
>
>

-- 
View this message in context: http://www.nabble.com/implementing-pre-commit-hook-to-prevent-overwriting-files-under-tags-dir-tp25570855p25631395.html
Sent from the Subversion Users mailing list archive at Nabble.com.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2400863
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-27 09:30:59 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.