You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,11 @@ This is especially useful with csv/tsv/psv files:
12
12
This script expect input of two `sorted` text files. If the files are not sorted, the unix `sort` command may be of help: https://en.wikipedia.org/wiki/Sort_(Unix)
13
13
14
14
> ForEach line in File1, compare to line in File2
15
+
>
15
16
> equal: incr both files to next line
17
+
>
16
18
> line1 > line2: new line detected, incr File2 to next line
19
+
>
17
20
> line1 < line2: deleted line, incr File1 to next line
18
21
19
22
Since the list will be `sorted`, the performance of this script is expected to be approximately `O(|A| log |A| + |B| log |B|)`, where A is File1 and B is File2.
0 commit comments