sensors output has 2 temp1: display each
Posted: Sat Jun 30, 2012 7:09 pm
My sensors output from terminal has 2 lines beginning temp1:
The first temp1: is my north bridge temp
The second temp:1 is my GPU
The 2 temp:1s are seperated by a few other lines.
I need to capture the first and ignore the second and vise versa to display these 2 temps in conky.
Thought there might be a simple way to grep a 1st, 2nd, 3rd etc instance of a word or phrase?
This is a test:
The first temp1: is my north bridge temp
The second temp:1 is my GPU
The 2 temp:1s are seperated by a few other lines.
I need to capture the first and ignore the second and vise versa to display these 2 temps in conky.
Thought there might be a simple way to grep a 1st, 2nd, 3rd etc instance of a word or phrase?
This is a test:
Code: Select all
[code select all: blah blah blah]