🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: dla.wizards
Article #2

Re: awk

#2
From: Regina Dawley
Date: Wed, 27 Sep 1989 15:12
9 lines
695 bytes
matchlines = 0
while ( getline < "temp.data" > 0) {
input[matchlines] = $0
system("head -5 < tale.data > tale.hdr")
print $0 >> tale.hdr
system("tail -29 < tale.data >> tale.hdr")
system("sprint tale.hdr")
matchlines++
}
Technical Details
Message-ID: <502@dpscg1.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!dsacg1!dpscg1!zcf1025
References: <501@dpscg1.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!dsacg1!dpscg1!zcf1025
From: zcf1025@dpscg1.UUCP (Regina Dawley)
Newsgroups: dla.wizards,dpsc.general,dsac.ais,comp.unix.wizards
Subject: Re: awk
Summary: i need to include the script
Keywords: Reading a input file?
Message-ID: <502@dpscg1.UUCP>
Date: 27 Sep 89 15:12:10 GMT
References: <501@dpscg1.UUCP>
Organization: Defense Personnel Suport Center, Philadelphia
Lines: 9