Re: scripting help

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

 



On Friday, Sep 29th 2006 at 16:59 +0100, quoth Tom Brown:

=>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 ?
=>
=>thanks

You're probably going to get some youngh whippersnapper who has a solution 
which will involve conspicuous resource consumption, like the use of sed.


foo==>'UCD-SNMP-MIB::ucdavis.55.101.1 = STRING: "CRITICAL emcpowera, 2 dead, 2 alive, possible LUN tresspass or HBA failure"'
echo ${foo#*STRING}

:-)

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux