Linux commands to copy one file to many files

后端 未结 9 1059
失恋的感觉
失恋的感觉 2020-12-23 11:10

Is there a one-line command/script to copy one file to many files on Linux?

cp file1 file2 file3

copies the first two files into the third.

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-23 12:15

    cat file1 | tee file2 | tee file3 | tee file4 | tee file5 >/dev/null

提交回复
热议问题