Skip to content

vincentmader/colored-echo.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNIX `echo` command, but with colors!

Usage via execution of the binary `./bin/cprint`

Though not strictly required, you might consider adding the binary file to your `$PATH`.

Otherwise, run the following from your shell:

cd ./bin
cprint "Define your text here!" "red"


Usage via `make`

Running a first test: (This will print “Hello, world!” in green.)

make test

Printing user-defined text:

msg="Define your text here!"
color="red"
make cprint msg="$msg" color="$color"


Possible color values

  • black
  • red
  • green
  • orange
  • blue
  • purple
  • cyan
  • lightgray
  • darkgray
  • lightred
  • lightgreen
  • yellow
  • lightblue
  • lightcyan
  • white

About

UNIX `echo` command, but with colors!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published