1 2 3 4 | 1.00 2.00 1.50 2.76 1.80 3.30 …… |
1 2 3 4 5 6 7 8 9 | #!bin/bash while read line do i=`echo $line | cut -f1 -d" "` j=`echo $line | cut -f2 -d" "` (time foobar $i $j) 2>foo.tmp grep real foo.tmp | cut -f2 >>foo.txt done < "in.file" rm -f foo.tmp |
1 2 3 4 5 | for file in /home/developerworks/test/* do (time $file) 2>foo.tmp grep real foo.tmp | cut -f2 >>foo.txt done |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |