五颜六色的脚本

1年以前  |  阅读数:362 次  |  编程语言:Shell 


#!/bin/bash

 

clear

echo -e "\033[1m Hello World"

 # bold effect

echo -e "\033[5m Blink"

       # blink effect

echo -e "\033[0m Hello World"

 # back to noraml

 

echo -e "\033[31m Hello World"

 # Red color

echo -e "\033[32m Hello World"

 # Green color

echo -e "\033[33m Hello World"

 # See remaing on screen

echo -e "\033[34m Hello World"

echo -e "\033[35m Hello World"

echo -e "\033[36m Hello World"

 

echo -e -n "\033[0m"

  # back to noraml

echo -e "\033[41m Hello World"

echo -e "\033[42m Hello World"

echo -e "\033[43m Hello World"

echo -e "\033[44m Hello World"

echo -e "\033[45m Hello World"

echo -e "\033[46m Hello World"

 

echo -e "\033[0m Hello World"

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8