转载自:http://www.cnblogs.com/lr-ting/archive/2013/02/28/2936792.html 感谢原作者的分享
点击链接可以看原文
补充:我在实际操作中用到的:
echo -e "\033[47;30m $formerFilePath \033[0m and \033[47;30m $filePath \033[0m"
注意到\033[47;30m \033[0m 左右括起来的部分才会有效果,所以可以显示一行有多个效果
转载自:http://www.cnblogs.com/lr-ting/archive/2013/02/28/2936792.html 感谢原作者的分享
点击链接可以看原文
补充:我在实际操作中用到的:
echo -e "\033[47;30m $formerFilePath \033[0m and \033[47;30m $filePath \033[0m"
注意到\033[47;30m \033[0m 左右括起来的部分才会有效果,所以可以显示一行有多个效果