Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose you want to write the same letter to many people except that you want each letter addressed to the senders personally. This can be

Suppose you want to write the same letter to many people except that you want each letter addressed to the senders personally. This can be created using a shell script. Put the names of the recipients (one per line) in a file called names. Create a textfile called template which has the string NAME wherever you want the persons name to appear (e.g., Dear NAME, ...). Finally, write a script that produces one file per name (call each file using the persons name with suffix .txt), containing the personalized letter obtained from the template file (use sed).

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

Students also viewed these Databases questions