From: Aaron McDaid (hoss at domain technologist.com)
Date: Tue 24 Apr 2001 - 20:43:36 IST
On Tue, Apr 24, 2001 at 07:18:35PM +0000, Stee Renwick wrote:
> I'm trying to print up the cpu speed in Mhz and I found the file
> /proc/cpuinfo
> So all I need to do is figure out how you print a specfic line,
> I get the felling grep is what I need but I can't get it to print line 15
> only
> Any Ideas how to print a specific line in a file??
head -n 15 < /proc/cpuinfo | tail -n 1
general case for lines x -> y
head -n y < /proc/cpuinfo | tail -n y-x+1
Aaron
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:02 GMT