Hi,
When I execute this command
prtdiag -v
output sample :
System clock frequency: 160 MHZ
Memory size: 4GB
==================================== CPUs ====================================
E$ CPU CPU
CPU Freq Size Implementation Mask Status Location
--- -------- ---------- --------------------- ----- ------ --------
0 1280 MHz 1MB SUNW,UltraSPARC-IIIi 2.4 on-line MB/P0
1 1280 MHz 1MB SUNW,UltraSPARC-IIIi 2.4 on-line MB/P1
================================= IO Devices =================================
Bus Freq Slot + Name +
Type MHz Status Path Model
------ ---- ---------- ---------------------------- --------------------
pci 66 MB pci108e,1648 (network)
okay /pci@1f,700000/network@2
pci 66 MB pci108e,1648 (network)
okay /pci@1f,700000/network
But I want only CPU count i.e 0 and 1 from above output.
How can I parse the output for only CPU column in shell script?