Search the web
Sign In
New User? Sign Up
geeksthatgawk · for GNU Awk questions & discussions
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
How can I print a cents symbol (¢) in an awk-genned e-mail?   Message List  
Reply | Forward Message #221 of 221 | Next >
I'm at a total loss with this one...

Here's the script I want to use to inform our customers about a 5¢
(see the problem?) price increase. It's important for us to use the
cents symbol, so the perception is that the increase is VERY SMALL. 5¢
is just a "nickel", after all...

===========================================================
BEGIN { "date" | getline d
split(d,darr," ")
dtstamp=sprintf("%s %s %s %s\n",darr[1],darr[2],darr[3],darr[6])
}

{

{ thismail = sprintf("echo \"%s\n\nDear %s,\n\nAfter six years of
stable prices, the cost of ink has increased to a point where we can
no longer absorb it. So, we will be increasing the cost of our
premium inks by 5[the cents symbol needs to go here] per pint,
effective May 1, 2007.\n\nWe realize that this may seem like a very
small increase, but over our many customers, and the many, many
gallons shipped, it should cover the increases without greatly
affecting your core business.\n\nThank you for your time.\n\nJerry
Gilels and\nThe TelePrint Operations Team\nCustomer Service Hours:
9am-9pm Mon-Sun (CST)\n\" | mail %s -s\"[Subject goes here]\"",dtstamp,
$5)

}
system(thismail)
}
===========================================================
Also, how can I display the double quotes (") symbol in the same
sort of e-mail? I can't get that one to work either.

Thanks in advance for your help.

Jerry Gilels
Dallas, TX
214-526-9692





Fri Mar 30, 2007 4:15 pm

huhjijijiji
Online Now Online Now
Send Email Send Email

Forward
Message #221 of 221 | Next >
Expand Messages Author Sort by Date

I'm at a total loss with this one... Here's the script I want to use to inform our customers about a 5¢ (see the problem?) price increase. It's important...
huhjijijiji
Online Now Send Email
Apr 13, 2007
12:02 am
< Prev Topic  |  Next Topic >
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help