I'm trying to avoid loading this data into arrays & foreaching each one, so
I want to see if anyone has an idea for a better way to do this.        

Part 1. 

Given the output from compiling xyz, I end up with a log with warnings as
such

----
compiling xyz
"a: warning"
"b: warning"
compiling more stuff.
"a: warning"
---  

I want to get one instance of each warning & output it to a file.  I can do
that by backticking it through sort, and loading lines that start with a " &
don't match the previous entry, and then writing that array to a file.
This seems cumbersome. 

Part 2.  Given the above, I want to compare an older list of warnings, and
capture only new ones...    Without loading them into arrays & doing
foreaches on the array to compare, I can't think of how to do this.  

Any ideas/suggestions?

-mike


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to