+ -
当前位置:首页 → 问答吧 → 文件输出给一个文件。

文件输出给一个文件。

时间:2011-06-20

来源:互联网

if [ $result -lt 10 ] && [ $result > 0 ]; then
echo this test case is pass
else
echo this test case is failed
fi

文件输入两种。要不。this test case is pass。要不。 this test case is failed
我现在如何将输出付给一个文件。指定到>/123.txt。
谢谢。

作者: chunjing   发布时间: 2011-06-20

回复 chunjing


    if [ $result -lt 10 ] && [ $result > 0 ]; then
echo this test case is pass
else
echo this test case is failed
fi
方法很多吧,把上面的代码放到一个文件里,把执行的结果输出>123.txt

作者: wtuter   发布时间: 2011-06-20