Create script which checks day of the week

Assignment Help Programming Languages
Reference no: EM1369348

Create a script that checks the day of the week, and takes one of two actions (step 2 or 3) depending on the day. If the day is Monday through Friday, print (send to stdout) the name of the day. Then, find each file named TTDL (Things-To-Do List) in the tree rooted at the current directory (pwd on down). Using a separate output line for each of these files, print the file path (what find returns) and the number of lines in the file (use wc -l). Remember you will need to create at least two TTDL files to test your program: one in your working directory and one in a subdirectory. The script should automatically capture all output in to a file called "may_save"
If the day is Saturday or Sunday, print only a simple message, such as "Go back to sleep".

Run your script on a weekday. Remember that your script should be automatically redirecting your output to a file (such as my_save), and append a copy of your script. I recommend that you test your script on a weekend as well, but I won't require a copy of that output.
Turn In your output file from step 4 and your script.

Copy the output and the script code in to a word document and submit it. NOTE: Microsoft word automatically capitalizes the first alphabet of each sentence - Make sure you turn this feature off. Make sure you follow the naming convention as described in the syllabus. Also remember to always include a complete listing of the actual commands (source code) you used to complete the assignment along with the results in your homework submission.

Reference no: EM1369348

Questions Cloud

Write vl program to convert leagues-number of nautical miles : Write a VL program which will convert 20,000 leagues to number of nautical miles. Your program requires no input elements, just elements to compute result and output how many nautical miles is equivalent to 20,000 leagues.
Construct the payoff table : Two oligopoly company are in the process of estimating their marketing strategies. Firm 1 can generate estimated profits of $10 million from strategy A
Major decision facing the company : Important assumptions that were integral to the firm's major decision
Question on long run equilibrium : Suppose this industry is perfectly competitive and is presently in long-run equilibrium. Suppose people start to prefer dogs as pets and cat ownership declines.
Create script which checks day of the week : Create a script which checks day of the week, and takes one of two actions (step 2 or 3) depending on the day. If day is Monday through Friday, print (send to stdout) name of the day.
Explain are the managers at wyant & wheeler justified : Explain Are the managers at Wyant & Wheeler justified in firing Andrew and What set of criteria would you use to arrive at this decision?
How much profit does lite and kool make : What price does it charge. What is Lite and Kool's markup. How much profit does Lite and Kool make. Do firms in monopolistic.
Show the demand management and forecasting : Important information about Demand Management and Forecasting - Find the tracking signal and state whether you think the model being used is giving acceptable answers.
At what time are two stones at the same height : A house is 30 ft long and 24 ft wide, and has 8 ft high ceilings. What is the volume of the interior of the house in cubic meters and cubic centimetres.

Reviews

Write a Review

Programming Languages Questions & Answers

  Payroll program for a company

Write complete PAYROLL program for a company in which each employee falls into one of 3 categories - Administrative, Factory Employee or Salesperson.

  Write bash script to copy file from one location to another

Write a bash script called mycopy that copies a file from one location to another. An example of running the script is given below.

  Write program to calculate distance and time hurricane take

Write C++ program that will calculate the distance and time it will take (days/hours) for hurricane to reach Ft. Lauderdale if: Hurricane is at coordinates 16 N, 64 W, just SE of South Fla. off in Atlantic, with a speed of 20 mph.

  Write pseudocode and flowchart for program

Write pseudocode and flowchart for program that will prompt the user for a number, prompt the user for an operator (+,-,*,/).

  Iimplement a class called monetarycoin

Create an implement a class called MonetaryCoin that is derived from the class Coin class. Store a value in the in the monetary coin that represents its value.

  Design program which models the worms behavior

Design a program which models the worms behavior in the following scenario: A worm is moving toward an apple. Each time it moves, the worm cuts the distance between itself and the apple.

  Create logic for program-continously prompts for numeric

Create the logic for a program that continously prompts the user for two numeric values that represent the sides of a rectangle.

  Design considerations to comply with ada

Browsing devices that assist people with disabilities, such as an aural browser, are especially dependent on the best use of CSS styles. What design considerations should you be aware to comply with ADA?

  Write lisp function to reverse order of the elements in list

Write a Lisp function that: given a two-element list, reverse the order of the elements in the list (cannot use the LISP reverse function).

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

  Create a model using the entities movie

Create a model to represent this report using the entities MOVIE, THEATER, and SHOW_TIME. Assume that theaters may show multiple movies.

  Methods to declare and initialize one dimensional arraay

What is an array? Show different methods to declare and initialize one dimensional array. Draw how an integer array of 6 elements having base address 5001 is stored in memory.

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