Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Colorizing output from shell scripts?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Wed Apr 30, 2003 1:11 am    Post subject: Colorizing output from shell scripts? Reply with quote

I've got a simple shell script that prints out information line-by-line. Each line begins with a certain word, and I'd like to key off this word to colorize the entire line.

What's the best tool for this job? The information is coming from a command, and then being passed through an awk filter.
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Back to top
View user's profile Send private message
squiddy
n00b
n00b


Joined: 31 Mar 2003
Posts: 39
Location: Colorado, USA

PostPosted: Fri May 30, 2003 12:40 am    Post subject: re: Colorizing output from shell scripts? Reply with quote

I haven't tried it yet myself, but you might want to check out a perl script called colorize (oddly enough :)). looks pretty cool...
http://colorize.raszi.hu/
Back to top
View user's profile Send private message
Private_X
n00b
n00b


Joined: 30 May 2003
Posts: 34
Location: Germany

PostPosted: Fri May 30, 2003 6:42 am    Post subject: Reply with quote

OdinsDream:
If you want to colorize your "echo" Shellscript output, you might want to have a look at http://www.linuxgazette.com/issue65/padala.html.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum