I would like to write a script that compares two files line by line. For each of the two lines, determine the portion that matches and discard the rest, then writing the matched portion to a third file.
For example:
File 1:
Common Area 2B Corr Zn (G.C20)
File 2:
Common Area 2B Corr Zn (G0
Copy to File 3:
Common Area 2B Corr Zn (G
Thanks for any assistance!
For example:
File 1:
Common Area 2B Corr Zn (G.C20)
File 2:
Common Area 2B Corr Zn (G0
Copy to File 3:
Common Area 2B Corr Zn (G
Thanks for any assistance!