Sponsored Content
Full Discussion: Venn Data Maker
Homework and Emergencies Emergency UNIX and Linux Support Venn Data Maker Post 302979752 by Yoda on Thursday 18th of August 2016 01:15:55 PM
Old 08-18-2016
An approach using gawk:-
Code:
gawk -F, '
        NR == 1  {
                print "Name," $0
        }
        NR > 1 {
                for ( i = 1; i <= NF; i++ )
                {
                        if ( $i )
                                T[$i]
                        R[$i FS i]
                }
        }
        END {
                n = asorti(T)
                for ( i = 1; i <= n; i++ )
                {
                        for ( j = 1; j <= NF; j++ )
                        {
                                if ( ( T[i] FS j ) in R )
                                        S = S ? S FS 1 : T[i] FS 1
                                else
                                        S = S ? S FS 0 : T[i] FS 0
                        }
                        print S
                        S = ""
                }
        }
' file

This User Gave Thanks to Yoda For This Post:
 

2 More Discussions You Might Find Interesting

1. Programming

maker

how can i remake a program to crash a harddrive using unix:rolleyes: (2 Replies)
Discussion started by: flomper
2 Replies

2. Shell Programming and Scripting

Venn diagram results using awk

Hi, I have the following files 1.txt a 10 b 11 c 12 d 13 e 14 f 15 g 16 h 17 i 18 j 19 k 20 2.txt a 21 b 22 (15 Replies)
Discussion started by: jacobs.smith
15 Replies
kiki-the-nano-bot(6)						   Games Manual 					      kiki-the-nano-bot(6)

NAME
kiki-the-nano-bot - Kiki the nano bot, a 3D puzzle game SYNOPSIS
kiki-the-nano-bot DESCRIPTION
Kiki the nano bot is a 3D puzzle game, mixing Sokoban and Kula World. THE STORY
Once upon a time, there were some tiny little robots living in the nano world. They lived a happy artificial life busily collecting resources for the Maker who made more and more tiny little robots. But one day, a parasitic capacity destroyed the Maker's master control program. Since then he is malfunctioning and only producing lazy stupid little robots which shoot each other and destroy the nano world. Your task is to help kiki, the only sane bot left over, to repair the Maker. HOW TO PLAY
To solve the game, you have to complete several levels. Every level has it's own task. Pressing ESC will display a menu with a 'help' item which explains what you have to do in order to fulfill this task. Once you managed to fulfill the task, the exit gate will be activated. If kiki moves through the activated exit gate, it will be 'beamed' to the next level. The following table lists the default keys you will use to control kiki's actions: Up Move forward Down Move backward Left Turn left Right Turn right Space Shoot Control Jump Shift Push Page down Change view Home Look up End Look down You may change the keys in the keyboard setup screen. For more information, see the game's web site. SEE ALSO
The game's web site <http://kiki.sourceforge.net/> AUTHOR
Kiki the nano bot was developed by Thorsten Kohnhorst (aka Monsterkodi) and others. 2008-05-12 kiki-the-nano-bot(6)
All times are GMT -4. The time now is 03:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy