awk scripts, examples of

Glen W. Plantz plantz at manta.NOSC.MIL
Sat Dec 22 07:21:47 AEST 1990


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 at nosc.mil			San Diego, CA  92110
phone - (619)225-2538

==============================================================================



More information about the Comp.unix.questions mailing list