In the process of writing code, we often encounter a line-by-row comparison between the two files, especially the text comparison between the new code and the source code, which describes the comparison between the new code and the source code using UltraEdit.
Source code: BEARING.MAC
Finish/clear/filname,bearing,1/prep7/title,3D Modelblock,0,2.5,0,1,0,2Wpoff,0,1,2Wprot,0,- -,0BLC4,0,0,2,1,2wpcsys,-1,0Wpoff,0,3,2CYL4,0,0,0,0,2, -,-1CYL4,0,0,1.2,,,,-0.2CYL4,0,0,1,,,,-1Vsel,s,volum,,2,4,1Vsbv,all,4Allsel,all Vsel,s,volum,,5,7,1Vsbv,all,5Allsel,allvsymm,x,all,,,,0,0Vsel,allvglue,all SAVE
New code: ZHOUCENG1A.MAC
Finish/clear/filname,bearing,1/prep7/title,3D Model5block,0,2.5,0,1,0,2Wpoff,0,1,2Wprot,0- -,0BLC4,0,0,2,1,2wpcsys,-1,0Wpoff,0,3,2CYL4,0,0,0,0,2, -,-1CYL4,0,0,1.2,,,,-0.2CYL4,0,0,1,,,,-1Vsel,s,volum,,2,4,1Vsbv,all,4Allsel,allvsel,s,volum,,5,7,1Vsbv,all,5Allsel,allvsymm,x,all,,,,0,0Vsel,allvglue,all SAVE
1) in UltraEdit, open both the source code BEARING.MAC and the new Code ZHOUCENG1A.MAC, (1) as shown:
Figure (1) in UltraEdit, open both the source code and the new code
2) Click "File" – "Compare Files" on the UltraEdit toolbar – √ tick "difference for color distinction", "√ Tick" for "diff" and √ tick "ignore content blank"-click on "Compare" button, (2) shown:
Figure (2) Setting the type of comparison
3) The effect is as follows:
Figure (3) comparing the source file to the new file
As the figure (3) shows, the new file Zhouceng1a.mac and the source file Beaering.mac in addition to lines 5th and 8th, the others are the same.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Compare two files with a UltraEdit