🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.misc
Article #2010

Operate on two files at the same time in awk

#2010
From: Vilok Kusumakar
Date: Thu, 30 Sep 1993 17:19
13 lines
1307 bytes
I have a problem for awk experts:

I have two text files file1 and file2.

I want to look for presence of string at $1(1st column) in file1 in 
file2. And print out all the lines in file1 whose $1 is not present 
in any line in file2.

--
Vilok Kusumakar                    OSI Protocols for tomorrow......
vilok@bnr.ca                       Bell-Northern Research, Ltd.
Phone: (613) 763-2273              P.O. Box 3511, Station C 
Fax:   (613) 765-4777              Ottawa, Ontario, K1Y 4H7
Technical Details
Message-ID: <1993Sep30.171928.6462@bmerh85.bnr.ca>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!bnr.co.uk!bnrgate!bmerh85!bmerh322!vilok

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f8c9b,be6d506f16d4e9f8,start
X-Google-Attributes: gidf8c9b,public
X-Google-Thread: f72b0,be6d506f16d4e9f8,start
X-Google-Attributes: gidf72b0,public
X-Google-Thread: 14b500,be6d506f16d4e9f8,start
X-Google-Attributes: gid14b500,public
X-Google-ArrivalTime: 1993-09-30 10:51:29 PST
Newsgroups: comp.unix.misc,comp.unix.questions,bnr.unix
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!bnr.co.uk!bnrgate!bmerh85!bmerh322!vilok
From: vilok@bmerh322.bnr.ca (Vilok Kusumakar)
Subject: Operate on two files at the same time in awk
Message-ID: <1993Sep30.171928.6462@bmerh85.bnr.ca>
Sender: news@bmerh85.bnr.ca (Usenet News)
Reply-To: vilok@bnr.ca
Organization: Bell-Northern Research
Date: Thu, 30 Sep 93 17:19:28 GMT
Lines: 13