Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Creating a Case statement dynamically
- X-seq: zsh-users 8999
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Creating a Case statement dynamically
- Date: Wed, 29 Jun 2005 11:34:05 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <kf13c1pi5cjc93homkhm5dpgkt62lhs7n7@xxxxxxx> <20050628175845.GA5050@xxxxxxxxxxxxxxxx> <4880307205062815506511f134@xxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Tue, 28 Jun 2005 15:50:54 -0700, wrote:
>2005/6/28, Nikolai Weibull <mailing-lists.zsh-users@xxxxxxxxxxxxxxxxxxxxxx>:
>> zzapper wrote:
>>
>> > I have script which lists a series of files I might wish to edit
>> >
>> > I'd like the script to dynamically output a case
>>
>> Use an array/list and select the nth element from it,
>> nikolai
>>
>
>I suggest the "select" loop. For example:
>
>select f in **/*.tex; do
> if [[ "$REPLY" = q ]]; then
> break
> elif [[ -n "$f" ]]; then
> gvim $f
> fi
>done
>
>Note that this block will loop until you exit with ^C or q.
thx just what I was looking for!
--
zzapper
vim -c ":%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg?"
http://www.rayninfo.co.uk/tips/ vim, zsh & success tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author