我有这个现有的命令:
xcodebuild | tee "$MY_TEMP_FILE_PATH" >> "$MY_LOG_FILE_PATH"
即
stderr -> log file
temp file
normal console output
stdout -> log file
temp file
(no normal console output)
我想添加OCUnit2JUnit。他们的例子有这个后缀:2>&1 | ocunit2junit
。但是,我想与现有的重定向集成,因此映射将是:
stderr -> log file
temp file
normal console output
OCUnit2JUnit
stdout -> log file
temp file
OCUnit2JUnit
(no normal console output)
这可能吗?