Write a shell script that changes the text color

Write a shell script that changes the text color

Code:

# Hints
# run in bash.For example :~$bash color1
clear
echo ---------------------------------------------
echo "            Change text color"
echo ---------------------------------------------
echo -e "\e[33mThis is yellow\e[0m"

Output:











Hints:

In a program 33 is a color code
If you want change text color. You should change number only.
Some Color code:
White    - 1
Red      - 31
Green   - 32
Yellow -33
Blue     -34

No comments

Powered by Blogger.