比较两个数据文件? [英] compare two data files?

查看:117
本文介绍了比较两个数据文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何比较两个数据文件.即一个文件包含更多数据,如3900000,另一个文件包含3900.获取相似数据.该文件格式类似于矩形...

how to compare two data files.ie one file is having more data like 3900000 and another one is 3900..get similar data.that file format is like rectangular...

推荐答案

我想您没有阅读 HOW-TO- ASK-A-QUESTION [ 换句话说,第一个公共数据在小文件的第1行中,在大文件的X行中,然后第二个公共数据在小文件的第2行中,并在大文件的X + Y行中(放在前一个之后)?

还是这些数据可以没有任何顺序?这意味着在小文件的第1行和第二个文件的X行中有1个公共数据,在小文件的第2行和第二个文件的X-Y行(位于前一个之前)中有第二个公共数据吗?

数据是否在不同的行中?没有不同的线,但用任何特殊符号分隔吗?所有的线长都一样吗?哪种数据(数字,字符串,混合格式的结构...)? 矩形格式"是什么意思?就像一张excell的地图吗?列表?


如您所见,有很多事情可以直接影响应用程序的工作方式.如果您不提供更多信息,将很难为您提供帮助.
I guess you didn''t read HOW-TO-ASK-A-QUESTION[^]

Are the datas in the files kind of sorted? I mean, if you open both and you go from the beggining, are the "similar" data more or less in order?
In other words, first common data is in line 1 of small file and in line X of big file, then second common data is in line 2 of small file and in line X+Y (placed after the previous) on the big file?

or can these data be without any order? This means 1 common data in line 1 of small file and in line X of second file and second common data in line 2 of small file and in line X-Y (placed before the previous) of the second?

Are the data in different lines? No different lines but separated with any special symbol? Are all lines with the same length? Which kind of data (numbers, strings, structs of mixed formats...)? What do you mean with "rectangular format"? Is like a excell map? Tabulated?


As you see there are a lot of things that can affect directly how the application should work. If you don''t give more info, it is hard to help you.


我认为您应该详细说明您的帖子(请修改原始帖子,不要添加虚假答案) .
:)
I think you should elaborate a bit your post (please modify the original post, do not add fake answers).
:)


您可以绘制一系列彩色矩形
在您的比较视图中:):

-绿色:字节相似
-红色:字节不同
-蓝色:字节仅显示在一个文件中
You could draw a sequence of the colored rectangles
in your comparing view :) :

- green: the bytes are similar
- red: the bytes are different
- blue: the bytes are presented only in one file


这篇关于比较两个数据文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆