Find the intersection, union, or difference between the lines or words in two files
|
Klaus Alexander Seistrup
5711853dc6
First public release of a working pysets for Python 3
* Breaking changes: some options have changed or are gone. * License has changed to European Union Public License 1.2. |
||
|---|---|---|
| img | Add Codeberg identicon | |
| src | First public release of a working pysets for Python 3 | |
| LICENSE | First public release of a working pysets for Python 3 | |
| README.md | First public release of a working pysets for Python 3 | |
pysets
Find the intersection, union, or difference between the lines or words in two text files.
Usage: pysets [OPTIONS] COMMAND FILE_A [FILE_B]
Perform an algebraic operation on two text files.
options:
-h, --help show this help message and exit
-b, --subset true if all elements of A are in B
-p, --superset true if all elements of B are in A
-0, --disjoint true if A and B do not intersect
-i, --intersection elements common to A and B (A&B)
-u, --union elements from both A and B (A|B)
-d, --difference elements in A but not in B (A−B)
-s, --symmetric-difference
elements in A or B, but not both (A^B)
informative:
--version show version information and exit
--copyright show copying policy and exit
display:
-f, --casefold fold all elements to lowercase
-n, --count display number of elements only
-q, --quiet no output, only exit code
files:
FILE_A mandatory input file
FILE_B optional input file
With no FILE_B, read standard input.
A dash (‘-’) is a valid alias for standard input.
An ellipsis (‘...’ or ‘...’) is a valid alias for /dev/null.
Elements of intersections, unions and differences will appear
unordered.
SPDX-License-Indentifier: EUPL-1.2