[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Grep more than one



Rene Molsted wrote:
> Curently i use this for getting temperatur on our servers:
> cat /proc/cpuinfo | grep temp
> How can i add another grep so i get eg. both tmep and uptime

cat /proc/cpuinfo | egrep "temp|uptime"

However, my RaQ doesn't have uptime in cpuinfo but in uptime ?

--anders

PS. Or you could look in the manual... "man grep"