Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: globbing and set a command
- X-seq: zsh-users 14781
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: ugaciaka <ugaciaka@xxxxxxxxx>
- Subject: Re: globbing and set a command
- Date: Wed, 3 Feb 2010 08:12:33 +0100
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=BKH+hlg9h+9EHCmQYMjRPHX+5jej06LVY4WVWvHp0Z0=; b=ZXOxOIakdzGfBGqr3vJyz8j+6vOA3jzRS4JyKv1BAkqEXZBGrMm7ILqQpp4t/oPVFG FBtzP5GZXg+ITUDCfn92ygKLFxQANYad0zG6js1Gg3x68OOaCleJ6vQioWXlMhuzgt6A yd0fnrKng+0xDDH5iUmQkNrc4YulTqd5oRnBw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=UW3nJ5msUQdDM/zp4VNKin8/NA3jWExqbiMjbltcq2Hz0uJK0j//CuuVsoFJE9c55a OuBSPZmbbnG1KuPGH0JjRB3T5BhQonDKcgqcYypg2gUge1oKfHX37OHonOZHLL+13ByE HgiX5X5KCk/y0KlULZC/5bB+kjI8N+3ubCNWY=
- In-reply-to: <e7db6e961002022304x620d361t83a935a47705a4d@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <e7db6e961002022303m513f6fb8rad7b73c2b74d0462@xxxxxxxxxxxxxx> <e7db6e961002022304x620d361t83a935a47705a4d@xxxxxxxxxxxxxx>
On 3 February 2010 08:04, ugaciaka <ugaciaka@xxxxxxxxx> wrote:
> Hi,
>
> for setting the cpu governor I write:
>
> cpufreq-set -c 0 -g conservative
>
> cpufreq-set -c 1 -g conservative
>
> (I have dual core cpu)
>
> But I want write a unique command like
>
> cpufreq-set -c (0|1) -g conservative
>
> I was thinking of doing a for loop, but before I wanted to know if
> there was a globbing-way.
A for loop probably makes the most sense here, but you can also do
something crazy like
eval 'cpufreq-set -c '{1..2}' -g conservative;'
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author