A
Amy Lee
Hello,
I'm a sysadmin, I wanna write a small script to show information about
/proc directory. For example, I wanna show the cpuinfo file and just two
items "vendor_id" and "model name".
Here's the file (part):
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 10
cpu MHz : 1000.045
...........
I suppose that I should use grep command to do that. However, I don't know
how to accomplish it.
Could you give me some tips?
Thank you very much.
Amy Lee
I'm a sysadmin, I wanna write a small script to show information about
/proc directory. For example, I wanna show the cpuinfo file and just two
items "vendor_id" and "model name".
Here's the file (part):
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 10
cpu MHz : 1000.045
...........
I suppose that I should use grep command to do that. However, I don't know
how to accomplish it.
Could you give me some tips?
Thank you very much.
Amy Lee