Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何一次将数据插入文件?
考虑一下我是否有以下类似数据:
echo "hi" >> file1 echo "hi" >> file2
如何将相同的“hi”同时重定向到 file1 和 file2?
$ echo hi | tee -a file1 file2
请tee参阅手册页。
tee