| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1896 人关注过本帖
标题:多行文字比对
取消只看楼主 加入收藏
yz1025
Rank: 8Rank: 8
等 级:蝙蝠侠
威 望:6
帖 子:491
专家分:919
注 册:2012-10-26
结帖率:95.56%
收藏
 问题点数:0 回复次数:0 
多行文字比对
要怎么写才能做到两份文字比对后,结果像UltraEdit文字比对后的储存结果?
用DOS FC指令比对后的结果,有点没那么完整。

[ 1 ]  C:\1.txt
[ 2 ]  C:\2.txt
------------------------------------------------------------------------------------------------------------------------
1       OS_AC
=======
          !> OS_DC
=======
2       Power_Short
3       IIH_GPIO
4       IIH_FSH
5       IIL_GPIO
6       IIL_FSH
7       efuse_blank_check
8       UID_fuse_chk
9       UID_Write
10       UID_Read
11       Parity_write
12       Parity_AF_Read
13       BANDGAP_fuse_chk
14       BANDGAP_BF
15       BANDGAP_Write
16       BANDGAP_Read
17       BANDGAP_AF
18       Tempsensor_90
19       TempSensor90_fuse_chk
20       Temp_Sensor_90_Write
21       Temp_Sensor_90_Read
22       Temp_F7_F8_F9_Check
23       Temp_F7_F8_F9_write100
24       Temp_F7_F8_F9_Read
25       DEVSLP_90C
26       MemoryBist_HV_step1
27       MemoryBist_HV_step2
28       MemoryBist_LV_step1
29       MemoryBist_LV_step2
30       VOLTAGE_STRESS
31       OS_AC_STRESS
=======
          !> OS_DC_STRESS
=======
32       POR_L2H
33       POR_H2L
34       POR_VCCAH_L2H
35       POR_VCCAH_H2L
36       VDT_FIO_L2H
37       VDT_FIO_H2L
38       VDT_MS_L2H
39       VDT_MS_H2L
40       VDT10_L2H
41       VDT10_H2L
42       VDT23_L2H
43       VDT23_H2L
44       VDT27_L2H
45       VDT27_H2L
46       VDT5V_L2H
47       VDT5V_H2L
48       PLL
49       RTC
50       TRNG
51       VREF
52       XTAL
53       DLL
54       PAD
55       Normal_scan_HV
=======
56     <! Normal_scan_LV
57     <! Speed_scan
=======
58       Sata_scan
59       MAX_Spi_fsh_intf
60       MIN_Spi_fsh_intf
61       MAX_Sata_intlpbk
62       MIN_Sata_intlpbk
63       MAX_Sata_nearend_lpbk
64       MIN_Sata_nearend_lpbk
65       MAX_Sata_extlpbk
66       MIN_Sata_extlpbk
67       MAX_Sram_loop
68       MIN_Sram_loop
69       MIN_Sram_loop320
70       SSCG
71       MAX_SPI_ECC
72       MIN_SPI_ECC
73       MemoryBist_HV_step1_Stress
74       MemoryBist_HV_step2_Stress
75       MemoryBist_LV_step1_Stress
76       MemoryBist_LV_step2_Stress
77       DEVSLP_90_STRESS
78       efuse_blank_check_HV
79       efuse_blank_check_LV
------------------------------------------------------------------------------------------------------------------------

[ 1 ]  C:\3.txt
[ 2 ]  C:\4.txt
------------------------------------------------------------------------------------------------------------------------
          !> Power_short
          !> Dendrite
=======
1       OS_AC
2       OS_DC
=======
3     <! Power_short
=======
4       IIH
5       IIL
6       PMOS_Leak
7       UID_read
8       BANDGAP_AF_Read_PASS
9       BANDGAP_AF
10       Tempsensor130
11       Tempsensor130_2
12       POR_L2H
13       POR_H2L
14       POR_VCCAH_L2H
15       POR_VCCAH_H2L
16       VDT_MS_L2H
17       VDT_MS_H2L
18       VDT27_L2H
19       VDT27_H2L
20       VDT23_L2H
21       VDT23_H2L
22       VDT18_L2H
23       VDT18_H2L
24       VDT10_L2H
25       VDT10_H2L
26       VDT_FIO_L2H
27       VDT_FIO_H2L
28       VDT5V_L2H
29       VDT5V_H2L
30       PLL
31       RTC
32       TRNG
33       VREF
34       XTAL
35       DLL
36       PAD
37       Normal_scan
38       Speed_scan
39       Sata_scan
40       Dram_scan
41       MAX_Dram_intlpbk
42       MIN_Dram_intlpbk
43       MAX_Spi_fsh_intf
44       MIN_Spi_fsh_intf
45       MAX_Sata_intlpbk
46       MIN_Sata_intlpbk
47       MAX_Sata_extlpbk
48       MIN_Sata_extlpbk
49       MAX_Sram_loop
50       MIN_Sram_loop
51       MIN_Sram_loop_320
52       SSCG
53       MAX_SPI_ECC
54       MIN_SPI_ECC
55       Bsd
56       MAX_Mbist
57       MIN_Mbist
58       MAX_DRAM_SHIFT
59       MIN_DRAM_SHIFT
60       MAX_DSP_SRAM_SCAN
61       MIN_DSP_SRAM_SCAN
62       MAX_TCM_SCAN_SHIFT
63       MIN_TCM_SCAN_SHIFT
64       MAX_Dram_acchk_v1222
65       MIN_Dram_acchk_v1222
66       MIN_CLE_v1230
67       Spi_sidd
=======
          !> NS_3E0x29_efuse_chk
          !> NS_3E0x29_efuse_Read
=======
68       efuse_check
------------------------------------------------------------------------------------------------------------------------
搜索更多相关主题的帖子: txt 结果 比对 多行 文字 
2023-12-01 12:52
快速回复:多行文字比对
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.033142 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved