Set operations in the unix shell are possible:
http://www.catonmat.net/blog/set-operations-in-unix-shell/
And the solutions from this site are very user-friendly. With "user" being a sub set of all people loving unix :-)
I search a library to do things like this:
set-ops fileA - fileB
With "fileX" being a set of lines in a file.
I want a easy to use tool:
- The tool can use some kind of sorting for the implementation, but me (the user) don't want to call it.
- I don't want to call "comm -3" or other things which are hard to remember.
This results into the restriction that the set members are strings which must not contain the newline character. But that's ok.
Needed features:
- open source
- easy to install (for me this means: rpm/dpkg/pip package)
- available on linux.
- Above link has a list of supported set operations (Set Membership to Maximum). Most of them should be implemented.