SUMMARY: script efficiency repost

From: <joe_fletcher_at_btconnect.com>
Date: Thu Nov 27 2003 - 10:54:51 EST
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
Received on Thu Nov 27 11:00:03 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:24 EST