Write a fully functional and professional looking script

Assignment Help Other Subject
Reference no: EM131244876

Fully Functional Script -

In this section, you will write a fully functional script to help your manager with an important project that will build upon what you learned from your script work in Milestone Four. After you have written the script, you will execute it to generate a report for all three users (once for Bob, once for Henry, and once for Frank). You should have three unique generated reports in your ~/scripts directory (or more if you ran it multiple times per user). This script will be showcased to upper management and should demonstrate your best work.

a) Write the Script: Write a fully functional and professional looking script that meets all of the following requirements.

1. Resides within your ~/scripts directory and is named tps-report-gen.sh.

2. Take a supplied user's first name (Bob, Henry, or Frank) in any order when the script is executed (for example: sh tps-report-gen.sh bob).

3. Print out to the screen the text: TPS REPORT LISTING

4. A double newline.

5. Print out to the screen neatly the user's name, company position, and home directory path on one line.

6. A double newline.

7. A list of TPS Reports associated with that user.

8. A double newline.

9. Print out to the screen the text: END REPORT LISTING

10. The script needs to print the output to the screen and generate a report into the same directory as the script named tps-list-USER-DATETIME.rpt. USER would be the user's username and DATETIME would be the date and time that the report was run. USER and DATETIME would both change based on the username supplied and the date and time the script is executed. It may be easier to build the report file first, then simply cat the file to the screen within the script. An example report would look like:

tps-list-bob-030816624.rpt

HINT: To format the DATETIME portion as requested, use the following:

date "+%m%d%y%k%M" | awk -F" " {'print $1$2'}

b) Execute the Script: Execute the script to generate a report for all three users: once for Bob, once for Frank, and once for Henry. You should have three unique generated reports in your ~/scripts directory (or more if you ran it multiple times per user). Each report (and displayed output) should look like the following (but with the correct associated TPS Reports listed).

TPS REPORT LISTING

bob, ops, /home/bob

tps-report-02092016                                                      

tps-report-02102016

tps-report-02112016                                                      

tps-report-02122016

END REPORT LISTING.

Reference no: EM131244876

Questions Cloud

Design limitations-including phone size : Just as Motorola believed in the mid-1990s that cellular customers would be slow to switch from Motorola's analog phones to digital phones produced by Ericsson and Nokia, their faith in Iridium and its technology was unshakable
Economic implications of the treatise : Review the course objectives that are listed in the syllabus and post your TED Talk-style presentation to the discussion board -  In your initial post, describe which of the objectives influenced your talk the most and why.
Explain the purpose of an income statement : In a two- to three-page paper (excluding the title and reference pages), explain the purpose of an income statement and how it reflects the firm's financial status.
Describe which of the objectives influenced your talk : Review the course objectives that are listed in the syllabus and post your TED Talk-style presentation to the discussion board - describe which of the objectives influenced your talk the most and why. Then, review the talks posted by your fellow clas..
Write a fully functional and professional looking script : Write the Script: Write a fully functional and professional looking script that meets all of the following requirements. Resides within your ~/scripts directory and is named tps-report-gen.sh
What is the most money that the company : If the company is burdened by $70 per hour, and the new equipment is depreciated over five years, what is the most money that the company should pay for the new equipment? What assumptions have you made?
Prepare 2015 form 1040 and required federal forms : ACC330 Cumulative Project - Prepare the 2015 Form 1040 and all other required Federal forms and schedules for Brett Simons. The returns should be prepared taking the maximum tax benefit allowable into consideration. Round all amounts to whole dol..
Describe how you might apply one of the ethical theories : Identify the basic themes, topics, and concepts that make up the discipline of ethics. Explain the themes or ideas that unite the different ethical theories.
Do regional trade agreements promote free trade : Do regional trade agreements promote free trade or do they just create another kind of trade barrier? Explain your answer. Why does the WTO permit regional trade agreements when they violate the "most favored nation" principle? Explain your answer. D..

Reviews

Write a Review

Other Subject Questions & Answers

  Access articles about the history business approaches

access articles about the history business approaches management and marketing of eastman kodak and fujifilm. eastman

  Perceptions of god in the near east and far east

Your paper will address perceptions of God in the near East and Far East and will assess the impact of these perceptions. What were the differences between ancient Far Eastern religions and religions practiced in the ancient near East

  What change in feature-binding abilities

If we overload attention by giving someone too much to do, we would expect to see what change in feature-binding abilities?

  Explain how position is related to biological development

Explain how the position is related to the biological and/or physiological development as well as psychological development of adolescent girls.

  Explain how the concept of holiness emerges in the dialogue

in the euthyphro socrates and euthyphro discuss the concept of pietyholiness. this essay will not only test your

  What factors lay behind the upscaling of hollywood film

what factors lay behind the upscaling of hollywood film genres during the 1950s? identify the significant genres of

  In what way would hills notion of self-acceptance correspond

In what way would Hill's notion of "self-acceptance" correspond to Aristotle's conception of eudaimonia? According to the video "Religion, War, and Violence," Just War Theory asserts that military intervention.

  Advantages to using a flowchart for the solution

What are the advantages to using a flowchart for the solution? What are the advantages for using pseudocode?

  Provide an overview of company payment policy

Provide an overview of this company's payment policy including: the objective of payment policy, the costs of paying early, the costs of late payment and the mechanics of bill paying

  Public relations research issues

Discuss the role of public relations research in setting organizational short-term and long-term goals within an organization.

  Consider a representation of african royalty

Consider a representation of African royalty, such as FIGURE 13–1. How was this artwork used in the context of its culture? What are the differences between African portrayals of royalty and those of the West, such as the imperial portraits of ancien..

  Employee development affect organizational development

What is the goal of employee development? How does employee development affect organizational development? Do you think an organization should develop its own employee training program or should it be outsourced and why?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd