X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=JeSFUpL/QkmxWjafDMl/JwNDatQYkhPrlOVuWkmo3Eh KHgOMzVoQWNpnyD7xR2I3pTGNFf1BhbIkkCFhQqNMPx4ltlh83jSryU8pZfznoqS xqMvFzwbyjgJJuHZ0QwjNzRpif+ySwxBNek8qJgw0hih0DsxMF1PwS6TJ4nwcKOw = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; s=default; bh=ajOU/9LBK50+jxpa2tETjGwmQ5w=; b=RZjfBnuJPCLgtM6nW 798vSsE3eZ39spn7gTnmqmU+V75nTowIdSsThASsSrdZcZcN1RfwX9E6vIUkL5RT nt9cW6rGWvsLBCLBaQLtpGrQ+13ckwjuB8fSRWEY91dzzBt+dbfEIx8ytn5iaEJw tZvmAQ87NxIh4b/chyofHbK2FM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPAM_URI,SPF_PASS autolearn=no version=3.3.2 spammy=Stuff, diy, DIY.html, DIYhtml X-HELO: mail-in-01.arcor-online.net X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-17.arcor-online.net 3pMbGh3lPpzYGt From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: How to correctly rebase? References: <22046 DOT 25592 DOT 311399 DOT 765933 AT woitok DOT gmail DOT com> <8925F252-F479-4990-B568-1EC612DF39A5 AT etr-usa DOT com> <22047 DOT 42793 DOT 36600 DOT 773496 AT woitok DOT gmail DOT com> <41C9E795-AEEC-4378-8548-44DAF7DB98E7 AT etr-usa DOT com> <790A4380-09D0-445C-BF3B-9B847468DC44 AT etr-usa DOT com> Date: Fri, 18 Dec 2015 17:28:27 +0100 In-Reply-To: <790A4380-09D0-445C-BF3B-9B847468DC44@etr-usa.com> (Warren Young's message of "Fri, 16 Oct 2015 14:11:39 -0600") Message-ID: <87r3ijg1qs.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id tBIGSl2p007233 Warren Young writes: > How about something like > > find /usr -name ${extensions} | grep -vP '(? > The syntax isn’t vetted, but basically I’m saying that GNU grep’s > Perl-compatible regex mode supports negative lookbehind, which seems > like it should do what you want here. I can't use that with -regex in find, I'll have to stick to egrep compatible syntax. But lookbehind isn't really necessary in this case, so it seems that this might work, albeit certainly slower than before. I'll have to check which prefixes can possibly have these files in order to let the regex engine bail out as early as possible without backtracking too much. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ DIY Stuff: http://Synth.Stromeko.net/DIY.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple