Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #265618

OT: coloured text?

From Hans <hans.ullrich@loop.de>
Newsgroups linux.debian.user
Subject OT: coloured text?
Date 2024-01-07 19:50 +0100
Message-ID <HTGnD-1uZv-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi folks, 

just a short question, please allow me to ask: 

How can I get coloured text output in a shell script? 

I am using:

echo "my text bla"

As far as I read and understood, this is not possible in every shell. I found 
nothing in bash manual for example.

Debian is using "dash" and not "bash", if I am correct, and with using the 
shebang line :!/bin/sh it is using dash, am I correct?

If I want coloured text, which shell do I have to use and what is the syntax 
then within the shell script?

I searched the web, but could not find a clear answer to this.

Thanks for a short answer.

Best regards

Hans    

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

OT: coloured text? Hans <hans.ullrich@loop.de> - 2024-01-07 19:50 +0100
  Re: OT: coloured text? Greg Wooledge <greg@wooledge.org> - 2024-01-07 20:10 +0100
    Re: OT: coloured text? Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-07 20:20 +0100
      Re: OT: coloured text? Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-07 20:30 +0100
        Re: OT: coloured text? Greg Wooledge <greg@wooledge.org> - 2024-01-07 21:00 +0100
      Re: OT: coloured text? Greg Wooledge <greg@wooledge.org> - 2024-01-07 20:30 +0100
  Re: OT: coloured text? Kent West <westk@acu.edu> - 2024-01-07 20:10 +0100

csiph-web