PoshCode Archive  Artifact [65247097de]

Artifact 65247097de8399c405af8606d992a9990366f2f1414abb55b339b927da8da9e6:

  • File CPU-model.ps1 — part of check-in [d429db12e0] at 2018-06-10 13:54:35 on branch trunk — lscpu is the great command but what if I just wanna see CPU model? (user: greg zakharov size: 364)

# encoding: ascii
# api: bash
# title: CPU model
# description: lscpu is the great command but what if I just wanna see CPU model?
# version: 0.1
# author: greg zakharov
# license: CC0
# x-poshcode-id: 5391
# x-archived: 2015-01-31T07:59:42
# x-published: 2015-08-31T09:33:00
#
#
#!/bin/bash
cat /proc/cpuinfo | grep -oP '(?<=name\s\:\s)(.*)' | uniq