BASH change color of text ?
kassube at gmx.net
Tue Mar 11 21:17:45 UTC 2008
I think I'm getting old ...
> dave selby wrote:
> > dave at dev-machine:/var/lib/kmotion/daemons$ print "\033[1;32mkmotion
> > has been started\033[1;37m"
> > Warning: unknown mime-type for "\033[1;32mkmotion has been
> > started\033[1;37m" -- using "application/*"
> > Error: no such file "\033[1;32mkmotion has been started\033[1;37m"
> > dave at dev-machine:/var/lib/kmotion/daemons$
I forgot to mention that print isn't the command you were looking for. You
might want to use printf if you don't like echo or if you want a C-like
More information about the ubuntu-users