China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-15 10:38
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Ask the great experts about the usage of the Fc command [Help] View 1,541 Replies 3
Original Poster Posted 2003-06-10 00:00 ·  中国 广东 江门 开平市 电信
初级用户
Credits 103
Posts 1
Joined 2003-06-09 00:00
23-year member
UID 4572
Gender Male
From 广东
Status Offline
The FC command is used to compare the differences between two files. There are two files:
File: A File: B
a c
b b
c a
d

Issue the command fc D:\LS\Ls\a.txt D:\LS\Ls\b.txt>myfc.txt
Open the myfc.txt file and it shows
Comparing files D:\LS\Ls\a.txt and D:\LS\Ls\b.txt
****** D:\LS\Ls\a.txt
a
b
c
d
****** D:\LS\Ls\b.txt
c
b
a
******
How does this file display the differences between the two files?
Floor 2 Posted 2010-03-30 22:25 ·  中国 山东 联通
新手上路
Credits 13
Posts 6
Joined 2009-12-29 18:41
16-year member
UID 157565
Gender Male
Status Offline
I want to know too
Floor 3 Posted 2010-03-31 00:04 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
It's a pity that I can only look with my eyes. The FC isn't that intelligent yet.
I also want to find a command-line software that can intelligently display the differences between two files under DOS or Windows.
Floor 4 Posted 2010-03-31 11:38 ·  新加坡
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
This grave digging is really skillful. Try GNU for Win32's diff.exe.
Forum Jump: