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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  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.

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