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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=OL pqj09lGXskdYY/lT8jIUJwh8fM4mk3k5gdWo5DNGEz7p5CVGOK0KxJZ1i391zFVA ahHmCxLpVVcJ8xG7bTRnfWl+EUQ/twWqiDfLz2AaiaGu25z70LxpQriexjvEdATx FFp16UgtQ3NKzlWtsJ9gxwyCip5F40FRajUnyxrvM= 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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=58efKcGI SRydRNM/fMz9YsLl/3k=; b=SzwsHw2+TvQAjdiHf2pVbJNRHtTKH2jl56ZjONyX KyYNtNcd1q5udwFfpAOVGhSq4nG6G6Gt180478h0aQ+fS5PUhbW2MXkxeMrka0Oc ReHejxEt+6lfqedw8KSnDERGteXpwKPCUwLD0yHEMaOzt05tT175FZfSBjzO7irW reI= 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=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f182.google.com MIME-Version: 1.0 X-Received: by 10.107.155.9 with SMTP id d9mr13980624ioe.12.1414293064679; Sat, 25 Oct 2014 20:11:04 -0700 (PDT) In-Reply-To: <544A92F0.8030207@redhat.com> References: <14710326042 DOT 20141024202019 AT yandex DOT ru> <544A92F0 DOT 8030207 AT redhat DOT com> Date: Sat, 25 Oct 2014 21:11:04 -0600 Message-ID: Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.33-0.1 From: Keith Christian To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Thank you, Eric. Will have to remember the semicolon to combine two sed commands vs. trying to use "-e" which did not ever work properly for me. I knew there must have been a better way to combine sed commands! On Fri, Oct 24, 2014 at 11:57 AM, Eric Blake wrote: > On 10/24/2014 11:28 AM, Keith Christian wrote: >> uname_r () >> { >> uname -r | sed -e 's/[.(/\)]/_/g' | sed -e 's/\(.*\)\(_$\)/\1/' >> } > > Or for one less fork and less typing: > > uname_r () > { > uname -r | sed 's/[.(/\)]/_/g; s/_$//' > } > > -- > Eric Blake eblake redhat com +1-919-301-3266 > Libvirt virtualization library http://libvirt.org > -- 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