🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: dla.wizards
Article #1

awk

#1
From: Regina Dawley
Date: Wed, 27 Sep 1989 14:58
15 lines
1102 bytes
Hello World,
As a novice to the Awk programming language, i'm having a
problem with my script.
First, i'm reading a data file using the getline function;
Secondly, i'm assigning the data line to $0;
Next, i'm selecting the first 5 lines from another data file
using the head command and redirecting the output to a file.
Next, i want to print $0 and append it to the file containing the 5
lines. This statement does not execute.
Does anyone have an answer?  The script follows.

                                       Thanks
                                      Regina Dawley
                                   autovon 8-444-7508
                                   215-952-7508
Technical Details
Message-ID: <501@dpscg1.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!uwm.edu!mailrus!tut.cis.ohio-state.edu!dsacg1!dpscg1!zcf1025

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!uwm.edu!mailrus!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: awk
Keywords: Reading a input file?
Message-ID: <501@dpscg1.UUCP>
Date: 27 Sep 89 14:58:07 GMT
Organization: Defense Personnel Suport Center, Philadelphia
Lines: 15