Files
server/opt/psa/bin/cpuid
2026-01-07 20:52:11 +01:00

7 lines
299 B
Bash
Executable File

#!/bin/sh
### Copyright 1999-2025. WebPros International GmbH. All rights reserved.
# vim:ft=sh
# print coma-separated list of cpu model names.
perl -W -nale '/^model name\s*: (.*)$/i and $p{$1} = 1 and $cnt++ } { print %p ? (join ", ", sort keys %p) . " ($cnt core(s))" : "Unknown"' /proc/cpuinfo