Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I add an EOF in awk

Status
Not open for further replies.

jgl1212

Technical User
Feb 22, 2002
1
US

I am using printf to create unique records. The end of the record is unknown, so I am using a \n at the beginning of a new record to seperate records.

My problem is that the last record is not terminated.

Is there help for me?
 
Yes, there is help for you. Add the following line to the end of your script.
Code:
END{print}
Hope this is helpful to you. CaKiwi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top