In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
How do I set colors in shell? In view of this problem, this article gives the corresponding analysis and answers, hoping to help more friends who want to solve this problem to find a more simple and feasible way.
Enter and leave any string to make it the desired color:
#! / bin/shplus_color () {RED_COLOR='\ E [1x 31m 0:content 0:content {red | yellow | green} "exitficase" $2 "in red | RED) echo-e" {RED_COLOR} $1 {RES} " ; yellow | YELLOW) echo-e "${YELLOW_COLOR} $1 ${RES}"; green | GREEN) echo-e "${GREEN_COLOR} $1 ${RES}";; blue | BLUE) echo-e "${BLUE_COLOR} $1 ${RES}"; pink | PINK) echo-e "${PINK_COLOR} $1 ${RES}" *) echo "usage $0:content {red | yellow | blue | green}" esac} plus_color "I" redplus_color "am" yellowplus_color "you" blue
After reading the above, have you mastered the method of setting colors in shell? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.