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

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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