View Single Post
Old 4th December 2008, 04:41
pkrumins pkrumins is offline
Junior Member
Join Date: Jan 2008
Location: Riga, Latvia
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Set Operations in Unix Shell

Hi all!

I wanted to share a nice article/tutorial that I wrote about doing various set operations in Unix shell. I used awk, comm, sort, uniq, diff, join, head, tail, and other Unix utilities to do that.

The article explains 14 various 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.

The article can be read here: Set Operations in Unix Shell

I also created a .txt version of the article. It can be downloaded here: setops.txt

What do you think about it?
Reply With Quote
Sponsored Links