D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] sed

 

> # Speed:
> some_command | sed 's/^fan[0-9]\+: *\([0-9]\+\) RPM.*/\1/'

Thanks.

> # Temp:
> some_command | sed 's/[^:]*: *+\([0-9]\+\)C.*/\1/'

The second one doesn't work for some reason.

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html