Path: 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 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