cat file 2>&1 > newFile
file 为源输出
newFile 为重定向后的输出
如
cat file.txt 2>&1 > mylie.log
nohup ./command.sh > output 2>&1 &
zhangyy3 2019-08-05 17:20 原文
cat file 2>&1 > newFile
file 为源输出
newFile 为重定向后的输出
如
cat file.txt 2>&1 > mylie.log
nohup ./command.sh > output 2>&1 &