I have two that I would like to compare the difference and output that to a file.
(start file 1)
Class Name: An_agentas2_D_Applic_1
Class Type: MS-Windows-NT (13)
Active: yes
Class Name: An_agentas2_D_Applic_2
Class Type: MS-Windows-NT (13)
Active: yes
Class Name: An_agentas2_D_Applic_3
Class Type: MS-Windows-NT (13)
Active: yes
(end file 1)
(start file 2)
Class Name: An_agentas2_D_Applic_1
Class Type: MS-Windows-NT (13)
Active: no
Class Name: An_agentas2_D_Applic_2
Class Type: Standard
Active: yes
Class Name: An_agentas2_D_Applic_3
Class Type: MS-Windows-NT (13)
Active: yes
(end file 2)
As you can see in the second file the active and the standard lines are different. What I would like to do is if there is any difference between these files. Export the difference and get the Class Name line right above the line that was changed.
(start file 1)
Class Name: An_agentas2_D_Applic_1
Class Type: MS-Windows-NT (13)
Active: yes
Class Name: An_agentas2_D_Applic_2
Class Type: MS-Windows-NT (13)
Active: yes
Class Name: An_agentas2_D_Applic_3
Class Type: MS-Windows-NT (13)
Active: yes
(end file 1)
(start file 2)
Class Name: An_agentas2_D_Applic_1
Class Type: MS-Windows-NT (13)
Active: no
Class Name: An_agentas2_D_Applic_2
Class Type: Standard
Active: yes
Class Name: An_agentas2_D_Applic_3
Class Type: MS-Windows-NT (13)
Active: yes
(end file 2)
As you can see in the second file the active and the standard lines are different. What I would like to do is if there is any difference between these files. Export the difference and get the Class Name line right above the line that was changed.