> 可以做到。
>
echo "text" > file
tee 可以做到。
tee
echo "test" | tee file
sed不使用上述任何一种都可以做到吗?是否可以在sed不使用>或 的情况下将命令的输出保存到文件中tee?
sed
sed io-redirection
io-redirection ×1
sed ×1