Diff lệnh trong Unix được sử dụng để tìm ra sự khác biệt giữa các tập tin (tất cả các loại). Kể từ khi thư mục cũng là một loại tập tin, sự khác biệt giữa hai thư mục có thể dễ dàng được tìm ra bằng cách sử dụng các lệnh khác. Để có thêm tùy chọn, hãy sử dụng man diff trên hộp unix của bạn.
-b Ignores trailing blanks (spaces and tabs)
and treats other strings of blanks as
equivalent.
-i Ignores the case of letters. For example,
`A' will compare equal to `a'.
-t Expands <TAB> characters in output lines.
Normal or -c output adds character(s) to the
front of each line that may adversely affect
the indentation of the original source lines
and make the output lines difficult to
interpret. This option will preserve the
original source's indentation.
-w Ignores all blanks (<SPACE> and <TAB> char-
acters) and treats all other strings of
blanks as equivalent. For example,
`if (a == b)' will compare equal to
`if(a==b)'.
và còn nhiều hơn nữa.
Nguồn
2009-10-30 06:38:40
'a' xử lý tất cả các tệp dưới dạng văn bản,' r' đệ quy tìm kiếm thư mục con, 'q' báo cáo 'một thời gian ngắn', chỉ khi các tệp khác nhau – MackM
@reko_t là có cách nào để chạy điều này thông qua' Java' –