עבור לתוכן

שאלה קטנה: האם יש דרך בווינדוס לעשות את מה שהפקודה diff עושה ביוניקס?

Featured Replies

פורסם

אני לא בטוח אם השאלה מתאימה לכאן או לפורום של ווינדוס...

רק רציתי לדעת אם יש דרך להציג הבדלים בין קובצי טקסט בווינדוס...

אשמח לתשובה :)

פורסם

comp

ראה דוגמא:

D:\>help comp

Compares the contents of two files or sets of files.

COMP [data1] [data2] [/D] [/A] [/L] [/N=number] [/C] [/OFF[LINE]]

data1 Specifies location and name(s) of first file(s) to compare.

data2 Specifies location and name(s) of second files to compare.

/D Displays differences in decimal format.

/A Displays differences in ASCII characters.

/L Displays line numbers for differences.

/N=number Compares only the first specified number of lines in each file.

/C Disregards case of ASCII letters when comparing files.

/OFF[LINE] Do not skip files with offline attribute set.

To compare sets of files, use wildcards in data1 and data2 parameters.

D:\>comp /A 1.txt 2.txt

Comparing 1.txt and 2.txt...

Compare error at OFFSET 6

file1 = 3

file2 = a

Compare error at OFFSET 9

file1 = a

file2 = b

Compare error at OFFSET C

file1 = b

file2 = c

Compare error at OFFSET F

file1 = c

file2 = 4

Compare more files (Y/N) ?

פורסם

להבא שאלות על וינדוס -> פורום וינדוס...

פורסם

אתה יכול להשתמש בתוכנה EXAM DIFF.

וזה באמת קשור אם כבר ל-WINDOWS או תוכנות.

פורסם

אם אתה מכיר טוב את כלי היוניקס תשקול להתקין cygwin

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים