I have an input file such as...
Client: p0691t01
Backup ID: p0691t01_1079979109
Policy: TEST_SOLARIS
Policy Type: Standard (0)
Proxy Client: (none specified)
Creator: root
Name1: (none specified)
Sched Label: Full
Schedule Type: FULL (0)
Retention Level: 1 month (3)
Backup Time: Mon Mar 22 2004 12:11:49 (1079979109)
Elapsed Time: 124 second(s)
Expiration Time: Thu Apr 22 2004 13:11:49 (1082657509)
Compressed: no
Encrypted: no
Kilobytes: 33
Number of Files: 3
Number of Copies: 1
Number of Fragments: 2
Histogram: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
DB Compressed: no
Files File Name: TEST_SOLARIS_1079979109_FULL.f
SW Version: (none specified)
Options: 0x0
MPX: 0
TIR Info: 2
TIR Expiration: Tue Mar 23 2004 12:11:49 (1080065509)
Keyword: (none specified)
Ext Security Info: no
File Restore Raw: no
Image Dump Level: 0
File System Only: no
Object Descriptor: (none specified)
Previous BI Time: Wed Dec 31 1969 18:00:00 (0)
BI Full Time: Wed Dec 31 1969 18:00:00 (0)
Request Pid: 0
Backup Status: 0
I created an awk file to extract specific information from the input file...
/^Client:/ { client=$2 }
/Sched Label:/ { sl=$3 }
/Backup Time:/ { bt=$3 " " $4 " " $5 " " $6 " " $7 " " }
/^Kilobytes:/ { kbs=$2 " " }
/Number of Files:/ { nof=$4 " " }
/Backup Status:/ { bast=$3 " " }
{ print client bt sl nof kbs bast }
I'd be happy with this...
p0691t01 Mon Mar 22 2004 12:11:49 Full 3 33 0
but instead I get this...
p0691t01
p0691t01
p0691t01
p0691t01
p0691t01
p0691t01
p0691t01
p0691t01Full
p0691t01Full
p0691t01Full
p0691t01Mon Mar 22 2004 12:11:49 Full
p0691t01Mon Mar 22 2004 12:11:49 Full
p0691t01Mon Mar 22 2004 12:11:49 Full
p0691t01Mon Mar 22 2004 12:11:49 Full
p0691t01Mon Mar 22 2004 12:11:49 Full
p0691t01Mon Mar 22 2004 12:11:49 Full33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
What did I miss?
Thanks, in advance!
630111
Client: p0691t01
Backup ID: p0691t01_1079979109
Policy: TEST_SOLARIS
Policy Type: Standard (0)
Proxy Client: (none specified)
Creator: root
Name1: (none specified)
Sched Label: Full
Schedule Type: FULL (0)
Retention Level: 1 month (3)
Backup Time: Mon Mar 22 2004 12:11:49 (1079979109)
Elapsed Time: 124 second(s)
Expiration Time: Thu Apr 22 2004 13:11:49 (1082657509)
Compressed: no
Encrypted: no
Kilobytes: 33
Number of Files: 3
Number of Copies: 1
Number of Fragments: 2
Histogram: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
DB Compressed: no
Files File Name: TEST_SOLARIS_1079979109_FULL.f
SW Version: (none specified)
Options: 0x0
MPX: 0
TIR Info: 2
TIR Expiration: Tue Mar 23 2004 12:11:49 (1080065509)
Keyword: (none specified)
Ext Security Info: no
File Restore Raw: no
Image Dump Level: 0
File System Only: no
Object Descriptor: (none specified)
Previous BI Time: Wed Dec 31 1969 18:00:00 (0)
BI Full Time: Wed Dec 31 1969 18:00:00 (0)
Request Pid: 0
Backup Status: 0
I created an awk file to extract specific information from the input file...
/^Client:/ { client=$2 }
/Sched Label:/ { sl=$3 }
/Backup Time:/ { bt=$3 " " $4 " " $5 " " $6 " " $7 " " }
/^Kilobytes:/ { kbs=$2 " " }
/Number of Files:/ { nof=$4 " " }
/Backup Status:/ { bast=$3 " " }
{ print client bt sl nof kbs bast }
I'd be happy with this...
p0691t01 Mon Mar 22 2004 12:11:49 Full 3 33 0
but instead I get this...
p0691t01
p0691t01
p0691t01
p0691t01
p0691t01
p0691t01
p0691t01
p0691t01Full
p0691t01Full
p0691t01Full
p0691t01Mon Mar 22 2004 12:11:49 Full
p0691t01Mon Mar 22 2004 12:11:49 Full
p0691t01Mon Mar 22 2004 12:11:49 Full
p0691t01Mon Mar 22 2004 12:11:49 Full
p0691t01Mon Mar 22 2004 12:11:49 Full
p0691t01Mon Mar 22 2004 12:11:49 Full33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
p0691t01Mon Mar 22 2004 12:11:49 Full3 33 0
What did I miss?
Thanks, in advance!
630111