when i run the following command
db2 list tablespaces
Tablespaces for Current Database
Tablespace ID = 0
Name = SYSCATSPACE
State = 0x0000
Tablespace ID = 1
Name = TEMPSPACE1
State = 0x0000
i want it to display the output as
Tablespace ID Name State
0 SYSCATSPACE 0x0000
1 TEMPSPACE1 0x0000
can someone guide how to use awk for this in a single command or some other process .