Git Product home page Git Product logo

set-operations-in-unix-shell's Introduction

This is an implementation of 14 set operations by using only Unix utilities.

It was created by Peteris Krumins ([email protected]).
His blog is at http://www.catonmat.net  --  good coders code, great reuse.

This document is released under GNU Free Documentation License.

It was written as a supplementary material for my article "Set Operations in
the Unix Shell". This article explains how all the set operations were
created. It can be read here:

    http://www.catonmat.net/blog/set-operations-in-unix-shell/

------------------------------------------------------------------------------

The implementation contains the following 14 set operations:

    * Set Membership.
    * Set Equality.
    * Set Cardinality.
    * Subset Test.
    * Set Union.
    * Set Intersection.
    * Set Complement.
    * Set Symmetric Difference.
    * Power Set.
    * Set Cartesian Product.
    * Disjoint Set Test.
    * Empty Set Test.
    * Minimum.
    * Maximum.

They are implemented by using the following Unix utilities:

    * grep
    * awk
    * diff
    * comm
    * cat
    * sort
    * uniq
    * head
    * join
    * tail
    * wc
    * tr
    * sed
    * cut

The implementation is available in .txt (ascii), .pdf and excel 2007 (.xlsx)
formats. The latest version of this cheat sheet can always be downloaded here:

    .txt: http://www.catonmat.net/download/setops.txt
    .pdf: http://www.catonmat.net/download/setops.pdf

    excel file is available only in the source tree.

I am sorry that I didn't use LaTeX for this document but I wanted to see what
I can create in excel.

Actually I also wrote another article on the same subject called "Set
Operations in the Unix Shell Simplified" where I just listed the operations
without explaining them. It's here:

http://www.catonmat.net/blog/set-operations-in-unix-shell-simplified/


------------------------------------------------------------------------------

Have fun with unix and sets! ;)


Sincerely,
Peteris Krumins
http://www.catonmat.net

set-operations-in-unix-shell's People

Contributors

pkrumins avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.