It there a way to make the tee command in the terminal to wait for the command I'm piping into it to finish. For example if I use that rsync -aP bigfile1 bigfile2 | tee file is there a way to make tee only write into the file only when the whole rsync process has finished executing rather than doing it even during the process? And if tee can't do that is there an alternative thing I can do?
#Making the tee command wait for the process to finish?
1 messages · Page 1 of 1 (latest)
command | tee /tmp/$$ && cat /tmp/$$ > file && rm /tmp/$$