Print the file path and the number of lines in the file

Assignment Help Basic Computer Science
Reference no: EM13948706

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 and the number of lines in the file using wc -l. Create at least two TTDL files to test my program: one in my working directory and one in a subdirectory.

If the day is Saturday or Sunday, print only a simple message, such as "Go back to sleep".

Run my script on a weekday, redirecting your output to the file my_save and append a copy of my script.

Reference no: EM13948706

Questions Cloud

Develop a similar class hierarchy for pets. : Java programmers can use class hierarchies for the purposes of inheritance. For example, given a Tree class, we could define Conifer and Deciduous sub classes that inherit from the parent Tree class as you can see here:
What is the maximum number of bits in the sum of the n k-bit : Describe a combinational circuit that computes the sum of n k-bit numbers more efficiently. Analyze the size and depth of this circuit.
What is the japanese name for the popular art : What is the Japanese name for the popular art, usually woodcuts, that literally means "pictures of the floating world"? What are the stamped characters called that have been added to many Chinese letters and paintings
Classify the resources in each of the given situations : Classify the resources in each of the above situations as flexible or committed. If the resource is committed, determine whether it is committed for the short term or committed for multiple periods.
Print the file path and the number of lines in the file : Run my script on a weekday, redirecting your output to the file my_save and append a copy of my script.
Which three countries have most equal income distribution : The two points for the international income distributions reported in Table 8-1 can be used to make a rough calculation of the Gini coefficient. Use a spreadsheet to estimate the Gini coefficient for each country. Which three countries have the mo..
What will its profit in london be in this case : Assume that Toyota transports the cars to London by itself at a cost of $120 per car. What price should Toyota set in London in order to maximize its profit? What will its profit in London be in this case?
What are the alternatives facing chesbrough inc : What are the alternatives facing Chesbrough, Inc., with respect to production of component K-25? List the relevant costs for each alternative. Suppose that Chesbrough, Inc., purchases K-25 from Berham Electronics.
How did the new american nation deal with slaves : Declaration of Independence- How did the new American nation deal with Slaves and Slavery

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a complete java program called parser

Write a complete Java program called Parser that gets a comma-delimited String of integers (eg "4,8,16,32,...") from the user at the command line and then converts the String to an ArrayList of Integers (using the wrapper class) with each element con..

  What will happen if the supply voltage polarity is reversed

What will happen if the supply voltage polarity is reversed for the case of using a diode with PIV of 4.8V?

  Service in spite of ip unreliable service

TCP creates a reliable data transfer service, in addition to IP's unreliable best-effort service. Study this statement, and in your own words, summarize how TCP provides a reliable data transfer service.

  Determine the range

then performs the following analysis on the numbers: Determine the average number Determine the maximum number Determine the range (maximum - minimum) Displays a histogram that shows the numbers in each five-unit range

  Override the column labels with meaningful descriptions

Create a SELECT statement that would provide data for a faculty directory. Display should include faculty id, first name, middle initial, last name, office location (building and room), rank and phone number. The display should be sorted by last name..

  Implement a contractionary monetary policy

By how much has the money supply increased or decreased? If the money multiplier is 5, how much money will ultimately be created by this event? If the Fed wanted to implement a contractionary monetary policy using reserve requirement, how would that ..

  Describe the importance of hardware independence

Describe the importance of hardware independence. List three benefits of data redundancy. What is the role of Active Directory in the Windows operating system

  True and false

A.  (True | False) In the MSP430's active mode, the MCLK and SMCLK clocks are up and running and ACLK is not running (it is turned off).

  Educational information is safeguarded

From the e-Activity, discuss how students' educational information is safeguarded. Decide if you believe that the safeguard methods are sufficient, too stringent, or too lenient and support your answer.

  Implementation plan for word processing software application

Word processing software application. Boardman plans to hire Smith Systems Consulting to help them analyze their options and to create the implementation plan.

  Explain java data streams

Explain Java data streams. How do we move different types of data from one place to another in Java. What different types of data streams are there?

  A tcp/ip ethernet network

Canyon College plans to offer night classes for business school students, paralegal students, and nurses, in five remote cities. Their plan is to have professors offer the classes from the main site, and to use video conferencing and multimedia optio..

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