I have a number of log files that look like the folllowing:
======
Load started at:14-Mar-06 23:21:15 EST
Tablename: accounts
Statistics
number of records read: 10117683
number of bad records: 2
number of discarded records: 2
-------------------------------------------------
number of records loaded: 10117681
Elapsed Time (sec): 122.0
================
If I input the file above (along with other similiar ones), the output I want (print) is:
accounts 10117683 2 2 10117681 122.0
customers 78952 0 0 78592 18.5
I can pull out the fields with awk, but don't know how to get them all on one line for each file.
This is on Linux. If you have non-awk ideas that would be appreciated.
======
Load started at:14-Mar-06 23:21:15 EST
Tablename: accounts
Statistics
number of records read: 10117683
number of bad records: 2
number of discarded records: 2
-------------------------------------------------
number of records loaded: 10117681
Elapsed Time (sec): 122.0
================
If I input the file above (along with other similiar ones), the output I want (print) is:
accounts 10117683 2 2 10117681 122.0
customers 78952 0 0 78592 18.5
I can pull out the fields with awk, but don't know how to get them all on one line for each file.
This is on Linux. If you have non-awk ideas that would be appreciated.