📜  echo 或 cat 进入多个文件 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:58.761000             🧑  作者: Mango

代码示例1
# Use tee to read from standard input and write to standard output and files.
echo "hello" | tee -a file1 file2

or 

# can flip it around for heredoc: 
tee -a aaa bbb ccc << EOF contents ... EOF