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

  Program to display the bonus

product receives a 5% bonus, otherwise, he receives a 4% bonus. Display the bonus, formatted with a dollar sign and two decimal places, in the bonusLabel.

  Program to compute person-s body mass index

Write a program to compute person's body mass index? Create a modular program which calculates and display person's body mass index (BMI).

  Write script to get gross sales for each employee by xhtml

Use a one-dimensional array to solve the folloing problem: Write a script (using an array of counters) that obtains the gross sales for each employee through an XHTML form and determines how many of the salespeople earned salaries

  Program to calculate integer part of quotient

Calculate the integer part of the quotient when integer a is divided by integer. Calculate the integer remainder when integer a is divided by integer b

  Write program to display company payroll report in list box

Write a program that display a company payroll report in a list box. the program should read each employees name, hourly rate and hours worked from a file and produce a report.

  Write program-compute average using floating-point numbers

Write a program that will accept as input between 2 and 25 numbers and then calculate the average of the numbers. Make sure you use floating-point numbers in case the average is not a whole number.

  Write program to choose female student-completed more course

Suppose that input consists of a student file. You are told to write a program to select female students who have completed more than two courses.

  Explaining graphics as user experience on web sites

Graphics provide significant richness to the user experience on web sites. Discuss how each of these sites uses graphics in good or poor ways.

  Pseudocode to read in data file containing student names

Read in a data file containing student names, ID number, and gender into an array. Print the contents of each record using the array.

  Write a single line for body of constructor to create object

Create the constructor Orb(int xSpeed, int ySpeed). Write a single line for the body of the constructor,which creates a new Velocity object.

  Write web application that will give report of balance

Write the web application that will give a report of the balance held in a visitor's account during past several months.

  Design getter and setter and constructor methods

User must have option to draw new shape at different location and keep the existing shape. Design all the getter and setter & constructor methods for each class.

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