Write a script that checks the day of the week

Assignment Help Data Structure & Algorithms
Reference no: EM1380411

Write 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: EM1380411

Questions Cloud

Explain the concept of dns : Assume your job is to support desktop computers in a small corporation of 32 workers. A consulting company is setting up a private Web server to be used internally by company workers.
Complete binary tree : Think about an n-node complete binary tree T, where n=2^d - 1 for some d. Each node v of T is labeled with a real number x_v.
Create an er diagram : Create an E-R diagram with all appropriate notation for the following condition. In a particular fruit growing region there are a number of orchards.
Create a flowchart to determine the cause of problems : Assume you are the 1st level help desk technician at a average sized corporations. Your job is to handle the initial calls from corporation  computer users with personal computer related problems.
Write a script that checks the day of the week : Write a script that checks the day of the week, and takes one of two actions depending on the day. If the day is Monday through Friday, print the name of the day.
Business professionals to avoid unethical behaviour : When we realise that the interaction of all three(the law, politics and ethics can influence our wallets our ability to purchase a home as well as our children's or grandchildren's ability to live like we do is it our job as business professionals..
Illustrate what amount of safety stock would provide a stock : Illustrate what amount of safety stock would provide a stock-out risk of 3 percent. Assume normality.
How structural disadvantage also inequality being addressed : Using your own experience also or resources, do you agree? Provide examples also supporting evidence from multiple sources to support your position.
Illustrate what can you do to learn your job : If you find yourself in this situation, illustrate what are your options. Illustrate what can you do to learn your job, when re is no one re to train you.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Question about communication recovery plan

Think about a natural or man made disaster, and explain how a communications network could be recovered from such a disaster.

  Creating a database with asp.net

Make a database with a table called "MyUsers" and "MyRole" The table should have the following columns.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Converting arithmetic expression in reverse polish notation

Convert the following numerical arithmetic expression into reverse Polish notation and show the stack operations for evaluating the numerical result.

  Question about database administration

Should the data administrator really be on the same level as the DBA, generally somewhat low in corporate hierarchy or should this person have an elevated level of importance?

  Describe algorithm that finds maximum feasible flow in graph

Describe an algorithm that finds a maximum feasible flow in G. Denote by MF(|V|, |E|) the worst-case running time of an ordinary maximum flow algorithm.

  Data structures and algorithm design

Data Structures and Algorithm Design

  Sql statements

Suppose that the tables T1 and T2 have a 1:1 relationship. Suppose that T2 has the foreign key. Demonstrate the SQL statements necessary to move the foreign key to T1.

  Sql based question

In order to make the SQL select statements that would manufacture running summary files for reports of the above; how would you answer the questions below?

  Effective address-addressing mode of instruction is direct

Evaluate the effective address if the addressing mode of the instruction is (a) direct; (b) immediate; (c) relative; (d) register indirect.

  Create ef?cient algorithm to fnd redundancies

Fnd the redundancies m1, · · · , mn that are within the available budget and that maximize probability that system works correctly. Create an ef?cient algorithm.

  Comparison of the applicability of array

Data structures include: 1. a linked list, 2. an ordered, one dimensional array, and three. a binary tree. Assume the list of letters R, A, N, B, C, F, X and G are stored in a list.

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