Gentoo Archives: gentoo-user

From: Alec Ten Harmsel <alec@××××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Questions about cpu frequency utils scripting
Date: Tue, 21 Apr 2015 17:01:22
Message-Id: 55368251.5000904@alectenharmsel.com
In Reply to: Re: [gentoo-user] Questions about cpu frequency utils scripting by Walter Dnes
1 On 04/21/15 11:24, Walter Dnes wrote:
2 > On Tue, Apr 21, 2015 at 06:42:35AM -0400, Alec Ten Harmsel wrote
3 >> for core in `ls /sys/devices/system/cpu/ | egrep "cpu[0-9]+"`
4 >>
5 >> This works great on my desktop with 12 cores.
6 > Can you please check whether Emanuele's solution works on your system?
7 >
8 > for core in /sys/devices/system/cpu/cpu[0-9]*/
9 >
10 > I prefer simpler solutions.
11 >
12
13 That does work. I tested it this morning and it didn't work, but forgot
14 that I'm using zsh. Works fine with bash.
15
16 Alec