сравнить два файла (compare two files)
Примеры (Examples)
If dir1
is a directory containing a directory named x
, dir2
is a
directory containing a directory named x
, dir1/x
and dir2/x
both
contain files named date.out
, and dir2/x
contains a file named y
,
the command:
diff -r dir1 dir2
could produce output similar to:
Common subdirectories: dir1/x and dir2/x
Only in dir2/x: y
diff -r dir1/x/date.out dir2/x/date.out
1c1
< Mon Jul 2 13:12:16 PDT 1990
---
> Tue Jun 19 21:41:39 PDT 1990