scripting help
Paul Howarth
paul at city-fan.org
Fri Sep 29 16:14:33 UTC 2006
Tom Brown wrote:
> Hi
>
> I have a script and the output of that script is currently
>
> UCD-SNMP-MIB::ucdavis.55.101.1 = STRING: "CRITICAL emcpowera, 2 dead, 2
> alive, possible LUN tresspass or HBA failure"
>
> is there anyway to cut off the text '
> UCD-SNMP-MIB::ucdavis.55.101.1 = STRING: '
>
> so that i get whatever comes AFTER that ?
Pipe the output through:
sed -e 's/^UCD-SNMP-MIB::[^:]*: //'
Paul.
More information about the fedora-list
mailing list