- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: bold and underline words created in kornshell ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 09:27 AM
01-22-2004 09:27 AM
bold and underline words created in kornshell script
I want to reformat a report written in kornshell that's sent to a file and e-mailed to me to print via my local printer. Is there a way to bold or underline some of the words with in the script?
Any help would be appreciated
Debbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 09:40 AM
01-22-2004 09:40 AM
Re: bold and underline words created in kornshell script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2004 09:42 AM
01-22-2004 09:42 AM
Re: bold and underline words created in kornshell script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 01:24 AM
01-23-2004 01:24 AM
Re: bold and underline words created in kornshell script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 01:50 AM
01-23-2004 01:50 AM
Re: bold and underline words created in kornshell script
Or is it Debbie ?
Your korn shell script would have to be modified to generate html tags.
The hard way is do do this longhand, like
This text will appear in bold, This will be underlined, etc.
There's doubtless a much easier way in Perl ...
Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 01:52 AM
01-23-2004 01:52 AM
Re: bold and underline words created in kornshell script
Or, if it is only used for printing, let the script generate for each character to underline the sequence:
And for bold:
This is interpreted by most printers or printer-scripts to generate underline and bold... It is the way old matrix printers worked and supported by current printers for backwards compatibility. Even some terminal emulators support it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 02:05 AM
01-23-2004 02:05 AM
Re: bold and underline words created in kornshell script
I didn't know about Elmars' solution above and it would have saved me many a headache over the years!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 07:34 AM
01-26-2004 07:34 AM
Re: bold and underline words created in kornshell script
# print_file prints out the file egenrated by each sysadm function
# Arguments :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 08:48 AM
01-26-2004 08:48 AM
Re: bold and underline words created in kornshell script
So the answer starts with: how much trouble do you want to go to for this task? You'll need to know what language your printer supports (ie, PCL, Epson, Postscript) and what the escape codes might be to turn on (and also turn off) the enhancements. You then either:
- insert the printer-specific codes before and after the to-be-bold text using vi or sed,
- insert meta-characters such as and before and after the bold words, then write a script to change the codes into printer enhancement codes and pipe to the printer.
Or you can just use a PC to do the job in a simple word processor like Wordpad.
Bill Hassell, sysadmin