On 04/20/2015 09:05 PM, Walter Dnes wrote:
>
> Another item I'm missing is wildcarding directories in bash. The
> selected values are applied to the CPUs in a loop that goes like so...
>
> for core in /sys/devices/system/cpu/cpu[0-9]/
> do
> echo "${governor[${choiceminus}]}" > ${core}cpufreq/scaling_governor
> echo -n "CPU ${core:27:1} set to "
> cat ${core}cpufreq/scaling_governor
> done
for core in `ls /sys/devices/system/cpu/ | egrep "cpu[0-9]+"`
This works great on my desktop with 12 cores.
Alec