Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Creating a Case statement dynamically
- X-seq: zsh-users 8997
- From: Nikolai Weibull <mailing-lists.zsh-users@xxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Creating a Case statement dynamically
- Date: Tue, 28 Jun 2005 19:58:45 +0200
- In-reply-to: <kf13c1pi5cjc93homkhm5dpgkt62lhs7n7@xxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <kf13c1pi5cjc93homkhm5dpgkt62lhs7n7@xxxxxxx>
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
--
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author