Hi, I didn't understand. What is wrong or confused in output for more one CPU?
1st CPU model : pentium III 1st CPU speed : 1.73 GHz 2nd CPU model : pentium IV 2nd CPU speed : 2.4 GHz The 1st CPU is a PIII with 1.7 Ghz and 2nd CPU is a P4 with 2.4 Ghz. What you want? --- santosh kumar <[EMAIL PROTECTED]> escreveu: > Hi guys, > > Have small doubt in bash scripting..(#!/bin/bash) > Need to write script to get all m/c info, If I do > cat /proc/cpuinfo will > display CPU info. > My requirement is grep CPU model, speed and display > the outputs like > For example m/c has single CPU > > CPU model : pentium III > CPU speed : 1.73 GHz > I am getting correct output for single CPU but > getting confusion for > more than one CPU. > > If more than 1 CPU then my output has to be like > this > > 1st CPU model : pentium III > 1st CPU speed : 1.73 GHz > 2nd CPU model : pentium IV > 2nd CPU speed : 2.4 GHz > > Please give some tips.. > > Thanks & Regards, > santosh > ph : 080-5273061,5202417 > > > > -- > redhat-list mailing list > unsubscribe > mailto:[EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list ===== ================================ 0x005f Linux System Administrator ================================ The tux works and don't doubt this ================================ _______________________________________________________________________ Yahoo! Mail O melhor e-mail gratuito da internet: 6MB de espaço, antivírus, acesso POP3, filtro contra spam. http://br.mail.yahoo.com/ -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list