0
使用cat命令多個文件的複製內容我有3個文件 文件1,文件2,文件3 我想文件1到文件2和文件3的內容複製在一個命令 是否有可能與CAT命令 如果是如何,如果沒有那麼哪個命令是用來做這個任務文件在UNIX
使用cat命令多個文件的複製內容我有3個文件 文件1,文件2,文件3 我想文件1到文件2和文件3的內容複製在一個命令 是否有可能與CAT命令 如果是如何,如果沒有那麼哪個命令是用來做這個任務文件在UNIX
也許這段代碼可以幫助你。
cat file1.txt >> file2.txt && cat file1.txt >> file3.txt
使用tee
:
$ cat file1 | tee file2 > file3
man tee
:
NAME
tee - read from standard input and write to standard output and files