a*******e 发帖数: 3021 | 1 一个文件如下内容 $WORKDIR/Ycolour
Thu Oct 22 18:35:34 EDT 2009
pnmpsnr: PSNR between /home/temp/abc/b1.ppm and /home/temp/abc/b2.ppm:
pnmpsnr: Y color component: 41.55 dB
pnmpsnr: Cb color component: 42.03 dB
pnmpsnr: Cr color component: 43.70 dB
怎么抓取倒Y color后面的数字?
我看源程序里用下面的命令,但是始终给我抓的是0..
还有我哪个$WORKDIR能这么用嘛?
Y=`awk '/Y color/ {print int($4)}' $WORKDIR/Ycolour`
echo $Y |
|