我有这个:
echo "all done creating tables" >> ${SUMAN_DEBUG_LOG_PATH}
Run Code Online (Sandbox Code Playgroud)
但这应该只附加到文件,而不是写入stdout.如何写入stdout并附加到同一bash行中的文件?
像这样的东西?
echo "all done creating tables" | tee -a "${SUMAN_DEBUG_LOG_PATH}"
Run Code Online (Sandbox Code Playgroud)