- 论坛徽章:
- 0
|
本帖最后由 kunkkayang 于 2013-01-22 10:09 编辑
Below is the debug info, hope some one can help me to understand, thank you!
+ expect expectLogin.ep pi412c1n15
++ grep -P '\b\d+%.*$' -o ./tmp
+ spaceUsedPercent='3% /
0% /dev/vx
52% /afscache
0% /dev/shm
0% /ms
100% /tmp_ns
100% /tmp_amd
66% /a/nyn67f1/vol/nyn67f1v1/r_ied_asgna_new
1% /var/VRTSvcs/lock
29% /d/ny0251fx01/d1
65% /a/nyn74f1/vol/nyn74f1v4/r_it_fxprod
90% /a/hkn8f1/vol/hkn8f1v3/u_t1332939396
'8% /a/nyn101f2/vol/nyn101f2v5/appl_fx_tieredpricing_data_latency_01_new
+ echo spaceUsedPercent is 3% $'/\r' 0% $'/dev/vx\r' 52% $'/afscache\r' 0% $'/dev/shm\r' 0% $'/ms\r' 100% $'/tm p_ns\r' 100% $'/tmp_amd\r' 66% $'/a/nyn67f1/vol/nyn67f1v1/r_ied_asgna_new\r' 1% $'/var/VRTSvcs/lock\r' 29% $'/d /ny0251fx01/d1\r' 65% $'/a/nyn74f1/vol/nyn74f1v4/r_it_fxprod\r' 90% $'/a/hkn8f1/vol/hkn8f1v3/u_t1332939396\r' 7 8% $'/a/nyn101f2/vol/nyn101f2v5/appl_fx_tieredpricing_data_latency_01_new\r'
78% /a/nyn101f2/vol/nyn101f2v5/appl_fx_tieredpricing_data_latency_01_new
+ echo 87%
这是调试信息.最后的输出只有一行.
78% /a/nyn101f2/vol/nyn101f2v5/appl_fx_tieredpricing_data_latency_01_new
我预期的输出是:
3% /
0% /dev/vx
52% /afscache
0% /dev/shm
0% /ms
100% /tmp_ns
100% /tmp_amd
66% /a/nyn67f1/vol/nyn67f1v1/r_ied_asgna_new
1% /var/VRTSvcs/lock
29% /d/ny0251fx01/d1
65% /a/nyn74f1/vol/nyn74f1v4/r_it_fxprod
90% /a/hkn8f1/vol/hkn8f1v3/u_t1332939396
78% /a/nyn101f2/vol/nyn101f2v5/appl_fx_tieredpricing_data_latency_01_new
From the debug info we can see that the variable spaceUsedPercent has got the value, but why the eventual output only left the last line?
|
|