Hi,
I have a report file from DB2/UDB for AIX. The report file looks like this:
db2 "list tablespaces show detail"
Tablespaces for Current Database
Tablespace ID = 0
Name = SYSCATSPACE
Type = System managed space
Contents = Any data
State = 0x0000
and so on, each tablespace ID delimits the block in the report and each block contains 16 or 17 lines.
I want to take the value after the = symbol and produce a list like this
0 SYSCATSPACE System managed space any data 0x0000
Following on from this I will need to exclude some of text string fields as the real requirement is to obtain data about the allocated, used and free space.
Thanks
I have a report file from DB2/UDB for AIX. The report file looks like this:
db2 "list tablespaces show detail"
Tablespaces for Current Database
Tablespace ID = 0
Name = SYSCATSPACE
Type = System managed space
Contents = Any data
State = 0x0000
and so on, each tablespace ID delimits the block in the report and each block contains 16 or 17 lines.
I want to take the value after the = symbol and produce a list like this
0 SYSCATSPACE System managed space any data 0x0000
Following on from this I will need to exclude some of text string fields as the real requirement is to obtain data about the allocated, used and free space.
Thanks