[wplug] Looking for scripting help to parse information
Mathieu Dube
mujo at dubix.org
Fri Mar 14 08:41:59 EST 2008
> Thanks for any suggestions.
Good morning,
Im not sure this is what you want but you could use awk like this:
ipmitool -I lan -H 192.168.5.250 -U user -P password sdr type temperature |
awk 'BEGIN { RS = "" ; FS = "\n" }
{
print "first line: ", $1
print "second line: ", $2
print "third line: ", $3
}'
you can check out awk's documentation for more options
-M
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
More information about the wplug
mailing list