Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project #4 AWK and SED This project requires multiple steps using awk, sed, and shell. You will produce output files suitable for sending personalized emails

image text in transcribedimage text in transcribed

Project #4 AWK and SED This project requires multiple steps using awk, sed, and shell. You will produce output files suitable for sending personalized emails to customers (one output file for each customer meeting our criteria) Customer File (p4Customer.txt) Contains one line per customer Each customer line contains: o Customer Email email address also uniquely defines a customer o Full Customer Name (e.g., Bob L Head) o Title (e.g., Mr., Col., Ms.) o Paid Amount- how much the customer has previously paid o Owe Amount how much the customer owes Sample Data Moss,Mr. ,10580.00,100 pcorn@abc.net Pop Corn, Col.,50,200 You can find p4Customer.txt and template.txt in /usr/local/courses/clark/cs3423/2017Fa/Proj4/ Our criteria Produce an email file for each customer in the customer file having an Owe Amount greater than the Paid Amount. Our company doesn't want to pester customers like Pete Moss who have previously paid the company more money. In the simple example above, we wouldn't send an email to Pete Moss, but we would send one to Pop Corn There will be a template file (template.txt) which contains references to variables (all caps) which should be substituted with values for each customer meeting our criteria. Variables EMAIL customer email address (1st attribute) TITLE customer title (3rd attribute) FULLNAME full customer name NAME customer name AMOUNT - owe amount DATE - date the payment must be received. This is passed as the only parameter to proj4.bash Sample email template text in SMTP format MAIL FROM: RCPT TO: DATA From: "Bill King" To: "FULLNAME" Subject: Payment is Due Dear TITLE NAME, We appreciate your business with Completely Reliable Outlet Corp. You would be an even more valued customer if you will pay us $AMOUNT. If you don't pay us by DATE, we will double the amount you owe us. If you have any questions regarding your account, please contact

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

1. What is Ebola ? 2.Heart is a muscle? 3. Artificial lighting?

Answered: 1 week ago

Question

LO1 Discuss four different views of motivation at work.

Answered: 1 week ago

Question

LO6 Summarize various ways to manage retention.

Answered: 1 week ago