HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Programming/Scripts (http://www.howtoforge.com/forums/forumdisplay.php?f=7)
-   -   Set Operations in Unix Shell (http://www.howtoforge.com/forums/showthread.php?t=29216)

pkrumins 4th December 2008 03:41

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?

falko 5th December 2008 00:23

Interesting. Bookmarked. :)


All times are GMT +2. The time now is 17:16.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.