[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: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Sat, 26 Sep 2009 16:14:51 -0500

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].
Received on 2009-09-26 23:15:43 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.