Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

print colored text bash

#    .---------- constant part!
#    vvvv vvvv-- the code from above
RED='33[0;31m'
NC='33[0m' # No Color
printf "I ${RED}love${NC} Stack Overflow
"
Comment

echo with color from bash

$ echo "$(tput setaf 1)Shirt red $(tput setaf 4) Pant blue"
Comment

print colored text bash

Black        0;30     Dark Gray     1;30
Red          0;31     Light Red     1;31
Green        0;32     Light Green   1;32
Brown/Orange 0;33     Yellow        1;33
Blue         0;34     Light Blue    1;34
Purple       0;35     Light Purple  1;35
Cyan         0;36     Light Cyan    1;36
Light Gray   0;37     White         1;37
Comment

PREVIOUS NEXT
Code Example
Shell :: How to download Citrix Workspace for Ubuntu 
Shell :: localhost wsl 
Shell :: remove all untracked files git 
Shell :: move view vim 
Shell :: heroku upload local database 
Shell :: cmd rename multiple files 
Shell :: check apache version ubuntu 
Shell :: flutter@f1 
Shell :: linux time wrong 
Shell :: setup github password terminal 
Shell :: kubernetes get services 
Shell :: linux move all files up a directory 
Shell :: run pm2 in cluster mode 
Shell :: get total installed List from ubuntu terminal 
Shell :: youtube dl download linux 
Shell :: git squash last 2 commits 
Shell :: git merge develop to feature branch 
Shell :: ubuntu hide home folder on desktop 
Shell :: installing docker curl wget 
Shell :: rmdir not empty 
Shell :: bundle lock add platform linux 
Shell :: git uncommit last commit but keep changes 
Shell :: bash size file 
Shell :: install jenkins in linux 
Shell :: git look at changes to a file 
Shell :: install bootstrap in angular 10 
Shell :: ubuntu timestamp 
Shell :: ssh to k8s pod 
Shell :: git Config User with Cli 
Shell :: python pytorch 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =