奇怪的问题
db2inst1@serv30:/home/db2inst1# echo $(db2 list tablespace containers for 1)
Tablespace Containers for Tablespace 1 Container ID = 0 Name = /db/db2inst1/db2data/MAD/db2inst1/NODE0000/TPCD/T0000001/C0000000.TMP Type = Path
db2inst1@serv30:/home/db2inst1# echo $(db2 list tablespace containers for 1|grep Name)
db2inst1@serv30:/home/db2inst1#
db2inst1@serv30:/home/db2inst1# echo $?
0
db2inst1@serv30:/home/db2inst1#
加grep后为啥结果为空呢?
Tablespace Containers for Tablespace 1 Container ID = 0 Name = /db/db2inst1/db2data/MAD/db2inst1/NODE0000/TPCD/T0000001/C0000000.TMP Type = Path
db2inst1@serv30:/home/db2inst1# echo $(db2 list tablespace containers for 1|grep Name)
db2inst1@serv30:/home/db2inst1#
db2inst1@serv30:/home/db2inst1# echo $?
0
db2inst1@serv30:/home/db2inst1#
加grep后为啥结果为空呢?
作者: wolaos123 发布时间: 2011-12-06
你确认没写错?不会有不可见字符?
作者: 老农 发布时间: 2011-12-06
没有不可见字符。
db2inst1@serv30:/home/db2inst1#db2 list tablespace containers for 1|grep Name
Name = /db/a3inmadp/db2data/MAD/a3inmadp/NODE0000/TPCD/T0000001/C0000000.TMP
db2inst1@serv30:/home/db2inst1#db2 list tablespace containers for 1|grep Name
Name = /db/a3inmadp/db2data/MAD/a3inmadp/NODE0000/TPCD/T0000001/C0000000.TMP
作者: wolaos123 发布时间: 2011-12-06