Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Program to make text bold?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
tlister
n00b
n00b


Joined: 13 Jul 2004
Posts: 47

PostPosted: Tue Aug 03, 2004 6:08 pm    Post subject: Program to make text bold? Reply with quote

This may sound like a simple question but I'm not having any luck finding what I need. Is there a program that will look for a string in a text file and make it bold?
I was thinking SED might but it doesn't seem to.
I just need a program that will read a config file and make certain strings bold then spit it all out to an output file.
Thanks
Back to top
View user's profile Send private message
Zepp
Veteran
Veteran


Joined: 15 Mar 2004
Posts: 1246
Location: Ontario, Canada

PostPosted: Tue Aug 03, 2004 6:10 pm    Post subject: Reply with quote

most config files are just plain text? so they don't have like bold and font sizes and all that would have to be like an rtf or something to have properties like that.

Why do you need to do this with a config file anyway somewhat confused here of what you asking.
Back to top
View user's profile Send private message
David_Escott
l33t
l33t


Joined: 12 Jan 2003
Posts: 952
Location: Boston, MA

PostPosted: Tue Aug 03, 2004 6:15 pm    Post subject: Reply with quote

What you may be thinking of is a log colorizer. This would add ascii color escapes some of which have the effect of making things appear bold (but only when you view them in something supporting ascii escapes for instance less). Just look around in the app-admin for these.
Back to top
View user's profile Send private message
tlister
n00b
n00b


Joined: 13 Jul 2004
Posts: 47

PostPosted: Tue Aug 03, 2004 6:45 pm    Post subject: sed Reply with quote

Well the reason I'm doing this is during work I capture the config files of Routers, switches and other networking devices. My supervisor wants me to make them all pretty and take out the router menus. So I use SED to delete certain lines and change other things. Then what I'd like to do is setup another automated process that will take the output of sed and make certain things bold and if possible format them.

Thanks for the quick replies though.

The only cache is I'm stuck doing this in windows... lol
But I will soon be putting linux on this computer.
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Tue Aug 03, 2004 7:51 pm    Post subject: Reply with quote

I've done something like this. I used PERL to format firewall logs as HTML. The best part is I can change the formatting in the stylesheet rather than my PERL code.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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