Tips #3 – Show only CPU from a prtdiag / show lines between two paterns 22 Nov, 2006 • Nicolas Ledez Tags: prtdiag awk ‘BEGIN{$CPU=0} /^===/{$CPU=0} /^===.* CPUs/{$CPU=1} $CPU==1{print $0}’ Please enable JavaScript to view the comments powered by Disqus.