Currently browsing tag

perl

perl – 列出 CPU 資訊

忘記當時寫這個要做什麼 XD #! /usr/bin/perl open(INFO,”top -b -n 1|”); open(CPUCORES, “cat /proc/cpuinfo | grep processor | tail -n 1 | awk ‘{print $3 …