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 :: git stash with message 
Shell :: kali find devices on network 
Shell :: linux install docker 
Shell :: install i18next-browser-languagedetector 
Shell :: prettier yarn 
Shell :: docker command not available in ubuntu wsl 
Shell :: github actions configure aws credentials 
Shell :: docker run in the background 
Shell :: how to remove untracked files in git 
Shell :: ubuntu times new roman font 
Shell :: vim how to append to every line 
Shell :: git error push declined due to email privacy restrictions 
Shell :: how to reboot kali linux with commands 
Shell :: restart ubuntu 18.04 server 
Shell :: search git 
Shell :: ubuntu docker-compose cannot exit 
Shell :: How to install LAMP in Ubuntu 18.04? 
Shell :: set zsh as default shell 
Shell :: how to add .env to gitignore 
Shell :: uuntu free port from use 
Shell :: latest gradle version 
Shell :: pod install not working bad interpreter: No such file or directory 
Shell :: linux bash command to clean up log files 
Shell :: install flask auto reload 
Shell :: dotenv installation 
Shell :: kubeadm print join command 
Shell :: manjaro nvidia driver 
Shell :: tar compress 
Shell :: ext-dom missing ubuntu 
Shell :: linux how to display current time with timezone 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =