SUMMARY: script efficiency repost

joe_fletcher_at_btconnect.com
Date: 11/27/03

  • Next message: Richard Rodriguez: "Jaycor & Qlogic"
    To: sunmanagers@sunmanagers.org
    Date: Thu, 27 Nov 2003 15:54:51 GMT
    
    

    Hi All,

    I actually sent in a summary on this about 2 mins after the orginal post.
    Not su
    re what's happened to it. To save people some typing the solution was:

    egrep '(UNB\+UNOA|RFF\+AAK)' rawdata

    and variations thereon.

    Thanks to Casper for being fastest off the mark and to everyone who has
    responde
    d. Answers include some quite useful looking perl constructs.

    Cheers

    Joe

    Original method was:

    for LINE in `cat rawdata`
    do
             if [ "`echo $LINE | grep "UNB+UNOA" `" != "" -o "`echo $LINE |
    grep "RFF+AAK"
    `" != "" ]
             then echo $LINE
             fi
    done
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Richard Rodriguez: "Jaycor & Qlogic"