Now there are two files a.txt and b.txt, and the contents are assumed as follows:
----a.txt----(This is a comment)
1
2
3
4
5
----end----(This is also a comment, the same below)
----b.txt----
1
b
3
4
5
6
----end----
How to generate through batch processing:
----a-b.txt----(Content that is in a but not in b)
2
----end----
----b-a.txt----(Content that is in b but not in a)
b
----end----
----a~b.txt----(Content that is in both a and b)
1
3
4
5
----end----
Asking all forum friends, is it possible to achieve such an effect with P processing? I know there is a fc command in the system that can compare text, but the generated result is not very intuitive.
Comparison is based on lines, and external commands can be used.
----a.txt----(This is a comment)
1
2
3
4
5
----end----(This is also a comment, the same below)
----b.txt----
1
b
3
4
5
6
----end----
How to generate through batch processing:
----a-b.txt----(Content that is in a but not in b)
2
----end----
----b-a.txt----(Content that is in b but not in a)
b
----end----
----a~b.txt----(Content that is in both a and b)
1
3
4
5
----end----
Asking all forum friends, is it possible to achieve such an effect with P processing? I know there is a fc command in the system that can compare text, but the generated result is not very intuitive.
Comparison is based on lines, and external commands can be used.

