I'm missing something on the syntax. Each of the statements below work individually (I put in the variable).
awk '/Tablename:/ {tabname=$2; print tabname}' file
awk '/number of records read:/ {numrec=$5; print numrec}' file
awk '/Elapsed Time/ {elasec=$4; print elasec}' file
But when I try...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.