我在ubuntu中运行一个shell脚本,我希望终端中仅显示我的echo或print输出。我想避免使用/ dev / null 2>&1的错误和系统输出? 是否有任何选项只能打印用户输出... ????
echo "${yellow}[1] Preparing Setup ...${reset}"
cleanup
echo "${yellow}[2] Initializing ...${reset}"
initialize
echo "${yellow}[3] Setting up installer dependencies...${reset}"
installDep
echo "${yellow}[5] Running installer ...${reset}"
runInstaller