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

Re: scripting help



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.


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