【发布时间】:2011-10-05 15:51:00
【问题描述】:
我很确定我以前见过这样做,但我似乎无法通过 google 找到它。
for file in $mydir/*
do
#redirect the rest to $myotherdir/$file.output.
echo this should go to the $myotherdir/$file.output.
done
如果我可以使用tee 而不是重定向,那就太好了,这样它就会转到那个文件和标准输出。
【问题讨论】: