Question: Write this in !#/bin/bash 7. Suppose you want to write the same letter to many people except that you want each letter addressed to the

Write this in !#/bin/bash
7. 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 person's name to appear (e.g., Dear NAME, ...). Finally, write a script that produces one file per name (call each file using the person's name with suffix .txt), containing the personalized letter obtained from the template file (use sed). 8. Write a script that takes a string as command line argument corresponding to a filename, sorts the lines of the input file in reverse alphabetical order, and stores the result to a file whose name has in addition the suffix .sorted (use sort), Test your script on the file names created before
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
