X-Recipient: archive-cygwin@delorie.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:from:date
	:message-id:subject:to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=ZNBbzw3TaJjC1VRNA51zCw8Xx0Um+paKrzJ9Fy4QymM
	i9CO/ACoRIrfYYGG1jpbu8sZDATKL17UIVQzDG2ATIUiz8/XvQ1iEyKyIEoyjo3w
	O+okKgrSxHr8kM13SttzDdksDgHHvfMYiLlkU8w71id1qFp/huF+QbvlLQBui3xk
	=
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:from:date
	:message-id:subject:to:content-type:content-transfer-encoding;
	 s=default; bh=vUoIh3GLuhObniT7mH65R1He0fo=; b=P3gbbjhbFRfdtND4q
	ZIkhvb5IqOY5nMq9upAfbj+iTmItK1i2o+An1+4MvTjT7j8mUxanrr4f1Ku13oC9
	18jJPTgwdZOZLjLNbmJcOzwV7/dalyVwI12ZaLHOX8JFyDQtRL73frm6kiwGhgaO
	ssIn0OugvrwLXkI+3NuWQx8TtU=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=REPLY, dinwoodie, Dinwoodie, H*f:sk:57C0B8C
X-HELO: mail-qt0-f177.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:mime-version:in-reply-to:references:from:date         :message-id:subject:to:content-transfer-encoding;        bh=Xqs2Y8cySjQI7D4GWHhhNhFGyZK2+hFB06PM5H0QDH4=;        b=HI1FM5CHHLKB7EcRdnzv8uv2pi6o8SOxFB4C4TCERcnjaWWzIo01zKa74AyTJhl4Om         gxf+3rWJwzPytops8ej0qMGrG2UIlS1fz1EQ1lhwKXygW4hIV6pXDq7OfGHgCSeRmpRQ         R/OKs+Sde/VZl4tHaoIj1tkBdOo36WbAeWZEctyGG7Rj2ZntBbIo2o2QKO7vtGyUvtgv         BW2na6HR06n5Ma3Ga1nTMRQsAcDNoFis8XI3X6mcCzHxvTDUGYRCq28CnxlnUAXs/Ayl         xq4mkE/jPZ7NCVyAwzQ5L8R1qe+JXMuKgWGjzx/zMfbzHxE95lQkkYU+7iW3UFMaHYF6         nB2g==
X-Gm-Message-State: AE9vXwN8n63MxNFWC+qrVIF8utCaws+xlMjWUVlcvKThAGLN3ndGeikHw5EdlooZ25PclyB/K/DWIroh06FMNQ==
X-Received: by 10.200.44.213 with SMTP id 21mr6231790qtx.91.1472250507760; Fri, 26 Aug 2016 15:28:27 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <57C0B8CE.4030101@dinwoodie.org>
References: <CA+7cx1rR+pc6cKoL8L6APnJZu3s42xmUEpWdWn8mLj+BxW1V_w@mail.gmail.com> <57C0B8CE.4030101@dinwoodie.org>
From: Doug Henderson <djndnbvg@gmail.com>
Date: Fri, 26 Aug 2016 16:28:07 -0600
Message-ID: <CAJ1FpuPk=4w8_azL-ebYTz9M5BWwcnv1E5OkKX7STjXBVVKX+Q@mail.gmail.com>
Subject: Re: pick or semilar
To: cygwin <cygwin@cygwin.com>
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u7QMSosb020704

On 26 August 2016 at 15:46, Adam Dinwoodie  wrote:
> On 17/08/2016 15:25, Morten Kjærulff wrote:
>>
>> Hi,
>>
>> Is there a tool like "pick"
>> https://github.com/thoughtbot/pick
>>
>> in cygwin?
>
> I've just taken a brief look at that GitHub page, and it looks to be at
> least vaguely similar to fzf, which is included with Cygwin. You might want
> to take a look at that and see if it meets your needs.
...

Have you considered the bash select command? The following command
takes you to the documentation

info bash select

for example:

select fname in *.txt ;
do
    echo you picked No. ${REPLY}: ${fname} ;
    break ;
done


HTH

Doug


-- 
Doug Henderson, Calgary, Alberta, Canada

--
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


