linux 重定向输出
cat file 2>&1 > newFile
file 为源输出
newFile 为重定向后的输出
如
cat file.txt 2>&1 > mylie.log
nohup ./command.sh > output 2>&1 &
posted on 2019-08-05 17:20 cococooder 阅读(244) 评论(0) 收藏 举报
cat file 2>&1 > newFile
file 为源输出
newFile 为重定向后的输出
如
cat file.txt 2>&1 > mylie.log
nohup ./command.sh > output 2>&1 &
posted on 2019-08-05 17:20 cococooder 阅读(244) 评论(0) 收藏 举报