楼主: dxystata
1339 7

比较两个文本文件 [推广有奖]

版主

大师

34%

还不是VIP/贵宾

-

TA的文库  其他...

Software

中英文Ebook

R学习

威望
2
论坛币
182769 个
通用积分
15207.5291
学术水平
208 点
热心指数
271 点
信用等级
174 点
经验
291803 点
帖子
5387
精华
1
在线时间
13491 小时
注册时间
2006-6-21
最后登录
2024-5-6

初级学术勋章 初级热心勋章 中级热心勋章 初级信用勋章

200论坛币
out.txt (15.08 KB) out2.txt (15.08 KB)

忽略大小写,比较这两个文件中内容不一致的地方,谢谢!

关键词:文本文件 大小写 文本文件
沙发
邓贵大 发表于 2013-11-25 22:00:17 |只看作者 |坛友微信交流群
已有 1 人评分经验 热心指数 收起 理由
dxystata + 40 + 1 热心帮助其他会员

总评分: 经验 + 40  热心指数 + 1   查看全部评分

Be still, my soul: the hour is hastening on
When we shall be forever with the Lord.
When disappointment, grief and fear are gone,
Sorrow forgot, love's purest joys restored.

使用道具

藤椅
Tigflanker 发表于 2013-11-26 11:12:13 |只看作者 |坛友微信交流群
  1. %macro read(data);
  2. data &data.(keep=value);
  3. %let length=20;

  4. length a $ &length.;
  5. retain z -%eval(&length.-1);
  6. infile "C:\Users\guoti\Desktop\&data..txt" ls=32767;

  7. do until(length(a)<&length.);
  8.    input @z a @;
  9.    z+&length.;
  10.    value=lowcase(a);
  11.    output;
  12. end;
  13. run;
  14. %mend;

  15. %read(out)
  16. %read(out1)

  17. proc compare base=out compare=out1;run;
复制代码
试一下,改下路径。长度length可以修改。
Bye SAS.
若有缘,能重聚。

使用道具

板凳
webgu 发表于 2013-11-26 12:26:35 |只看作者 |坛友微信交流群
可以借助专业工具如 BCompare.
方便,灵活,功能强大。
已有 1 人评分经验 热心指数 收起 理由
dxystata + 40 + 1 热心帮助其他会员

总评分: 经验 + 40  热心指数 + 1   查看全部评分

SAS资源
1. SAS 微信:StatsThinking
2. SAS QQ群:348941365

使用道具

报纸
playmore 发表于 2013-11-26 15:23:04 |只看作者 |坛友微信交流群
webgu 发表于 2013-11-26 12:26
可以借助专业工具如 BCompare.
方便,灵活,功能强大。
用Total Commander也好
已有 2 人评分经验 论坛币 热心指数 收起 理由
webgu + 80 + 20 鼓励积极发帖讨论
dxystata + 40 + 1 热心帮助其他会员

总评分: 经验 + 120  论坛币 + 20  热心指数 + 1   查看全部评分

playmore邀请您访问ChinaTeX论坛!!!进入ChinaTeX论坛

使用道具

地板
tigerwolf 发表于 2013-12-17 05:18:17 |只看作者 |坛友微信交流群
这个可以用 bitcomp

使用道具

7
zhengbo8 发表于 2013-12-17 16:07:59 |只看作者 |坛友微信交流群
其实最好的是,git中的KDiff3这个工具,比较不同的地方,很直观。

http://www.oschina.net/p/kdiff3

使用道具

8
zw612003 发表于 2013-12-17 18:32:49 |只看作者 |坛友微信交流群
This website is my favorite.

http://www.diffchecker.com/

The comparison can remove some level of noise and give you a nicer result.

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-7 05:40