SUMMARY: script efficiency repost

joe_fletcher at btconnect.com joe_fletcher at btconnect.com
Thu Nov 27 10:54:51 EST 2003


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 at sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



More information about the summaries mailing list