Sponsored Content
Top Forums Shell Programming and Scripting Very Tiny UNIX project for Money Post 302970789 by aash on Monday 11th of April 2016 11:20:10 PM
Old 04-12-2016
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
 

2 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

A new project was posted on The UNIX and Linux Forums project board.

A new project was posted on your project board. Project title: Bash Shell Tutoring Estimated Budget: $50/hr Start date: Immediately Required skills: Linux, Bash, Shell, UNIX I work as a datawarehouse designer and developer. Although I usually stick to the role of an analyst,... (0 Replies)
Discussion started by: Neo
0 Replies

2. Homework & Coursework Questions

Very Tiny UNIX project for Money

Hello guys I have a tiny project that I need someone to do for me and I will pay him/her. I need it by tomorrow at 11:00 PM. Please if someone is willing to do it for me let me know and send me your email. Thanks (1 Reply)
Discussion started by: aash
1 Replies
projdel(1M)						  System Administration Commands					       projdel(1M)

NAME
projdel - delete a project from the system SYNOPSIS
projdel [-f filename] project DESCRIPTION
The projdel utility deletes a project from the system and makes the appropriate changes to the system file. OPTIONS
The following options are supported: -f filename Specify the project file to modify. If no filename is specified, the system project file, /etc/project, is modified. OPERANDS
The following operands are supported: project The name of the project to be deleted. EXIT STATUS
The following exit values are returned: 0 Successful completion. 2 The command syntax was invalid. A usage message for projdel is displayed. 3 An invalid argument was provided to an option. 4 The projid given with the -p option is already in use. 5 The project files contain an error. See project(4). 6 The project to be modified, group, user, or resource does not exist. 9 The project is already in use. 10 Cannot update the /etc/project file. FILES
/etc/project System project file ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWesu | +-----------------------------+-----------------------------+ |Interface stabilty | See below. | +-----------------------------+-----------------------------+ Invocation is evolving. Human readable output is unstable. SEE ALSO
projects(1), groupadd(1M), groupdel(1M), groupmod(1M), grpck(1M), logins(1M), projadd(1M), projmod(1M), useradd(1M), userdel(1M), user- mod(1M), project(4), attributes(5) DIAGNOSTICS
In case of an error, projdel prints an error message and exits with a non-zero status. NOTES
projdel deletes a project definition only on the local system. If a network name service such as NIS or LDAP is being used to supplement the local /etc/project file with additional entries, projdel cannot change information supplied by the network name service. SunOS 5.10 4 May 2004 projdel(1M)
All times are GMT -4. The time now is 01:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy