With some implementations of the printf utility (not all, because it is not required to support either the apostrophe flag or floating point), you can easily format the value to contain a thousands separator and then add the parenthesis for negative values with sed:
Regards,
Alister
I have automated some checks - and I want to send a email when there is an issue.
This is fine and I can send the email.
However - I want to generate the email in html format so I can highlight any issues to a reader..
ie. If there is a disk space issue - then the email will highlight the... (2 Replies)
hi,
I am new to unix.
I need send html content as a mail from my sun-solaris2.6 work station. When I tried that the recipient gets it as html code with all the tags.
any solutions?
thanx in advance (2 Replies)
Hi
I am new to unix and scripting.I am trying to send a html file as an attachment.
SUBJECT="Type of Exceptions in Application"
TO=Sushovan.Samals@gmail.com
SPOOLFILE=/data/reg/tlogs/Monitor.html
#echo "Send the E-mail message..."
uuencode $SPOOLFILE $SPOOLFILE | mailx -s "$SUBJECT" $TO... (2 Replies)
Hi,
I am trying to send html email using mailx like follow on sh shell (Bourne) on HP-UX:
mailx -s "Test HTML output in outlook
MIME-Version: 1.0
Content-Type: text/html" receiver@host.com < file.txt
Content of file.txt are as follows:
<html>
<h2>An important link to look at!</h2>... (3 Replies)
This is my first time writing a script and Im having some trouble,
Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage
I tried grep
Obviosly that hasnt worked,
Any... (8 Replies)
Hello,
I have a script which is sending an html file as an attachment.
#!/usr/bin/ksh
export MAILTO="user@company.com"
export CONTENT="/usr/tmp/file.html"
export SUBJECT="EmailSubject"
(
echo "Subject: $SUBJECT"
echo "MIME-Version: 1.0"
echo "Content-Type: text/html"
echo... (0 Replies)
Hello,
I need to send below text (in a file ABC)as html text in mail body and the same as csv attachment
1,2,3
4,5,6
7,8,9
but to send as html text in mailbody we use
echo "Subject: Report " | cat - ABC | /usr/lib/sendmail -t a@xyz.com
and to send as an attachment in csv format we... (9 Replies)
Hi,
I have a .sh file, to email a report of our backups from a linux machine. It looks like this (minus a few bits):
echo "HELO $host.$domain"
sleep 1
echo "mail from: vdrreport@$domain"
sleep 1
echo "rcpt to:$mailto"
sleep 1
echo "data"
sleep 1
echo "subject: $host VDR-Report... (2 Replies)
Hi Everyone,
I am facing problems in sending html mail with attachemnt.
I will able to send mail with attachment (plain text ) using mailx -s and uuencode command and
also html mail without attachment using sendmail option.
However I am not able to send html mail along with attachment.Either... (2 Replies)
ABOOK(1) General Commands Manual ABOOK(1)NAME
abook - text-based address book program
SYNOPSIS
abook [ OPTION ]
DESCRIPTION
This manual page documents briefly the abook program. This manual page was written for the Debian GNU/Linux distribution because the
original program does not have a manual page.
abook is a text-based address book program. It contains Name, Email, Address and various Phone fields. It is designed for use with mutt,
but can be equally useful on its own.
OPTIONS -h --help
Show usage.
-C --config <filename>
Use an alternative configuration file (default is $HOME/.abook/abookrc).
--datafile <filename>
Use an alternative addressbook file (default is $HOME/.abook/addressbook).
--mutt-query <string>
Make a query for mutt (search the addressbook for <string>).
The --datafile option, as documented above, may be used BEFORE this option to search a different addressbook file.
--convert [ --informat <inputformat> ] [ --infile <inputfile> ] [ --outformat <outputformat> ] [ --outfile <outputfile> ]
Converts <inputfile> in <inputformat> to <outputfile> in <outputformat> (defaults are abook, stdin, text and stdout).
The following inputformats are supported:
- abook abook native format
- ldif ldif / Netscape addressbook
- mutt mutt alias
- pine pine addressbook
- csv comma separated values
- palmcsv Palm comma separated values
The following outputformats are supported:
- abook abook native format
- ldif ldif / Netscape addressbook (.4ld)
- mutt mutt alias
- html html document
- pine pine addressbook
- gcrd GnomeCard (VCard) addressbook
- csv comma separated values
- palmcsv Palm comma separated values
- elm elm alias
- text plain text
- spruce Spruce address book
- wl Wanderlust address book
- bsdcal BSD calendar
--add-email
Read an e-mail message from stdin and add the sender to the addressbook.
--add-email-quiet
Same as --add-email but doesn't confirm adding.
--formats
List available formats.
COMMANDS DURING USE
Press '?' during use to get a list of commands.
SEE ALSO mutt(1), abookrc(5)AUTHOR
This manual page was written by Alan Ford <alan@whirlnet.co.uk>, for the Debian GNU/Linux system (but may be used by others).
abook was written by Jaakko Heinonen <jheinonen@users.sourceforge.net>
2006-09-06 ABOOK(1)