1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/linuxdash_ynh.git synced 2024-09-03 19:36:07 +02:00
linuxdash_ynh/sources/server/modules/shell_files/cpu_info.sh

7 lines
124 B
Bash
Raw Normal View History

#!/bin/bash
result=$(/usr/bin/lscpu \
| /usr/bin/awk -F: '{print "\""$1"\": \""$2"\"," } '\
)
echo "{" ${result%?} "}"