01-22-2008
try this ..
Quote:
I hv script that will output a txt file report , the report content is as below, I would like the word "No error" is bolded so that this message is highlighted , can advise what can i do ? thx
Date : 2002-01-22
Error : No error
Once you have created the txt file report , you can BOLD the "No error " using,
sed s/No error/$(tput bold)No error$(tput sgr0)/ report.txt > temp
mv temp report.txt
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
On the linux box I use at work, the directories are bold type to distinguish them.
Is there a way to make certain words in a text file bold?
Thanks! (4 Replies)
Discussion started by: Atama
4 Replies
2. Shell Programming and Scripting
Hi,
I have a file with multiple paragraph. I want to look for some word and make that paragraph bold. How can I do that?
Thanks,
Karthik (3 Replies)
Discussion started by: caprikar
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
How do I print some shell variable in BOLD/
Thanks for any suggestions,
Preeti (10 Replies)
Discussion started by: preetikate
10 Replies
4. UNIX for Dummies Questions & Answers
Folks;
I'm writing this as a part of a script:
echo "col1 hdg|col2hdg|col3hdg|"
How can i make these fields shows in Bold text? (10 Replies)
Discussion started by: moe2266
10 Replies
5. Shell Programming and Scripting
hi friend ,
I am generating a csv file i,e output file
E104|0|06/04/1994|The values E005 and E001 are not equal.
E106|0|01/09/1993|The values E001 and E002 are not equal.
E106|0|01/09/1993|The values E003 and E002 are not equal.
E108|0|02/30/1995|The values R001 and E001 are not equal.... (0 Replies)
Discussion started by: charandevu
0 Replies
6. Shell Programming and Scripting
Dear
i want to bold a text using shell script.
please give sample..
Thanks
rex (1 Reply)
Discussion started by: jrex1983
1 Replies
7. Shell Programming and Scripting
Hi All,
How to make the characters bold in k shell.
like for example
"File is too large to view" to "File is too large to view"
is it like echo "File is too large to view"
Please advice and samples (18 Replies)
Discussion started by: rajeshorpu
18 Replies
8. Shell Programming and Scripting
I want to bold one word in shell script. I want the value for num bold when it is inputted. My code does not bold the value. It's like its not even there.
echo -n "Please read a number"
read num ; echo "${bold} $num ${offbold}"
Thank you,
Ccccc (6 Replies)
Discussion started by: Ccccc
6 Replies
9. UNIX for Dummies Questions & Answers
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies
10. Shell Programming and Scripting
Hi,
i have a directory structure which contains few files each.
each file in turn has some functions. i'm searching for a word, say 'pen' in all the files present in all the directories. :wall:
consider a file file1.c in Dir1. out of the 3 funcs present in this file, func1(pennum) and... (3 Replies)
Discussion started by: i.srini89
3 Replies
LEARN ABOUT DEBIAN
lr_xml2mail
LR_XML2MAIL.IN(1) LogReport's Lire Documentation LR_XML2MAIL.IN(1)
NAME
lr_xml2mail - Formats a XML report and sends it by email
SYNOPSIS
lr_xml2mail [options] report.xml recipieint...
lr_xml2mail --version
lr_xml2mail --help [dlf-converters|output-formats|report-templates]
OPTIONS
--help [section]
If no argument is given, prints usage information and exits. Argument can be one of the following:
dlf-converters
Prints the list of available DLF converters and exits.
output-formats
Prints the list of available output formats and exits.
report-templates
Prints the list of available report templates and exits.
--output-format output format
Selects the ouput format in which to generate the report.
--template name
Uses the report configuration template named name to merge the reports. This option is required when using the --merge option to merge
reports.
--merge report_file
Merge report_file before formatting the report. This option can be used multiple times to merge more than two reports.
--subject subject
Sets the subject of the email message. Defaults to 'Your format report'.
--extra-file file
An additional text file that will be sent along the report. If the output format is txt, it will be appended to the report.
DESCRIPTION
lr_xml2mail formats the XML reports generated by Lire to various output format and sends it by email to the recipients specified as
remaining arguments.
The command will make sure the report is MIME encapsulated properly depending on the output format chosen. For example, a PDF report will
be sent as an attachment and (X)HTML output will appear as an HTML mail message. The content-type of the MIME message will also be set
properly.
From and Reply-To headers are initialized from the "lr_from" and "lr_reply_to" configuration variables.
SEE ALSO
lr_log2mail(1), lr_log2report(1), lr_xml2report(1), lire(1), lire(7), documentation in the Lire User Manual
AUTHOR
Francis J. Lacoste <flacoste@logreport.org>
VERSION
$Id: lr_xml2mail.in,v 1.23 2006/07/23 13:16:33 vanbaal Exp $
COPYRIGHT
Copyright (C) 2002-2004 Stichting LogReport Foundation LogReport@LogReport.org
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html.
Lire 2.1.1 2006-07-23 LR_XML2MAIL.IN(1)