Path: utzoo!attcan!telly!lethe!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!nosc!manta!plantz From: plantz@manta.NOSC.MIL (Glen W. Plantz) Newsgroups: comp.unix.questions Subject: awk scripts, examples of Keywords: awk scripts examples Message-ID: <1543@manta.NOSC.MIL> Date: 21 Dec 90 20:21:47 GMT Organization: Naval Ocean Systems Center, San Diego Lines: 20 I need to use awk to scan a file that consists of lines, each line starting with an integer, followed by a line of text that should have a period and then a newline character following that. The script should save the number at the beginning of the line, and if the line does not have a "period" prior to the "newline", to print out a message, with the integer number that was at the beginning of the line. I do not use awk, but would like to learn. I have some of the "standard" references, but would like to see more examples of "working" scripts to aid in my learning. Thanks in advance for any help. ============================================================================== Glen Plantz Computer Sciences Corporation 4045 Hancock Street email - plantz@nosc.mil San Diego, CA 92110 phone - (619)225-2538 ==============================================================================