View previous topic :: View next topic |
Author |
Message |
tlister n00b
Joined: 13 Jul 2004 Posts: 47
|
Posted: Tue Aug 03, 2004 6:08 pm Post subject: Program to make text bold? |
|
|
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 |
|
|
Zepp Veteran
Joined: 15 Mar 2004 Posts: 1246 Location: Ontario, Canada
|
Posted: Tue Aug 03, 2004 6:10 pm Post subject: |
|
|
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 |
|
|
David_Escott l33t
Joined: 12 Jan 2003 Posts: 952 Location: Boston, MA
|
Posted: Tue Aug 03, 2004 6:15 pm Post subject: |
|
|
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 |
|
|
tlister n00b
Joined: 13 Jul 2004 Posts: 47
|
Posted: Tue Aug 03, 2004 6:45 pm Post subject: sed |
|
|
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 |
|
|
Jake Veteran
Joined: 31 Jul 2003 Posts: 1132
|
Posted: Tue Aug 03, 2004 7:51 pm Post subject: |
|
|
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 |
|
|
|