04-12-2016
4,
0
Join Date: Apr 2016
Last Activity: 11 April 2016, 11:35 PM EDT
Posts: 4
Thanks Given: 0
Thanked 0 Times in 0 Posts
LOL not suspicious it was just going to be easier to upload a file with details on it. I will post the details in few minutes.
---------- Post updated at 10:18 PM ---------- Previous update was at 10:05 PM ----------
1) Write a script (project2.sh) that will take information from a file, and print (user’s choice of
printers) identical form letters to each recipient. Either E-197, E-199, E-194 printers or to project2.output. Prompt the user for their choice.
2) The script and output file need to be fully functioning script (project2.sh) your data file (project2.input) and your output file (project2.output)
3) Requirements of the script.
a. You can use any shell for processing the script (declare on first line).
b. The user of the script will be given a couple of options.
i. If the user gives no command line arguments, ask for the needed information,
through on-screen menus.
ii. If the user provides information, then, check to make sure the information is
accurate and print the letters to the identified printers.
c. Other outputs, such as information and headings, must take place in the script.
d. You must use a loop to process each line of the data file if it is processed. Your script should work if there are 4 lines in the data file or 4000 lines in the data file.
e. Your data file must be as shown in item 4. (project2.input)
f. Fully document (comment) all operations within the script.
4) Data file (project2.input) will be as follows:
Mike,Robert,M,E162k,1234 Fort, Lansing,Mi,48221
James,John,M,E162I,1234 Fort, Lansing,Mi,48221
David,Ray,F,P262I,1234 Fort, Lansing,Mi,48221
Todd,Jay,M,P252F,1234 Fort, Lansing,Mi,48221
5) The contents and example of the of the letter output are as follows:
Dear Mr. Mike
Welcome to Widgets, Inc. Robert. This letter is to inform you of your assigned office space at Widgets, Inc. is in the main Engineering building. Your office is E-1162-K located at 1234 Fort, Lansing,Mi,48221
Sicerely,
The Boss
---------- Post updated at 10:20 PM ---------- Previous update was at 10:18 PM ----------
Please let me know if you need anymore details.
Thanks