I'm sorry to ask what is possibly a very, very easy question. However, we just lost an employee that did this before and I am not sure how to accomplish this:
I have files that have the format of:
tablename1:
value, value, value
value, value, value
value, value, value
value, value, value
tablename2:
value, value, value
value, value, value
value, value, value
I need to write an awk script that will printout the table name and the number of records for each table. I have tried to use the NR variable but I can't get it to set back to 0.
Any help will be very greatly appreciated.
I have files that have the format of:
tablename1:
value, value, value
value, value, value
value, value, value
value, value, value
tablename2:
value, value, value
value, value, value
value, value, value
I need to write an awk script that will printout the table name and the number of records for each table. I have tried to use the NR variable but I can't get it to set back to 0.
Any help will be very greatly appreciated.