【发布时间】:2015-03-11 16:27:11
【问题描述】:
我有这个运行 Scala 测试代码的 Bash 代码:
scripts=(
Hello.scala
)
for script in "${scripts[@]}"; do
echo scala "${script}"
scala -nocompdaemon "${script}" > >(tee -a _testoutput.txt) \
2> >(tee -a _testerrors.txt >&2)
done
如何解释>(tee -a _testoutput.txt)?我通常使用|(管道)来使用tee。使用这个表达式有什么区别?
【问题讨论】: