Write a shell script

Assignment Help Programming Languages
Reference no: EM132832196

Question 1
Given a list of filenames, write a script called older.sh that returns the oldest file.
That is, typing older list will return the name of the oldest file in the list.
When you are testing your script, it may be useful to use the commands touch -t 202103081800 foo, touch -t 202103081801 goo, and touch -t 202103081802 hoo to create three dummy files, foo, goo and hoo to work with.
Include written documentation about your shell script. Put the code of your shell script on Github so it can be checked.

Question 2
Write a script called funny.sh that prints out the phrase ‘This is funny' if you include an argument when you invoke the script, i.e., typing ./funny.sh will result in the above phrase being printed out.
However, if you invoke the script with no argument, then the script should then return the phrase ‘This is NOT funny'.
Include written document about your shell script. Put the code of your shell script on Github so it can be checked.

Question 3
(a). Use curl to download case-cp.sh from the Wünschiers book into your directory. How did you do this?
(b). Write a shell script that

• no chime if the time lies between 0 minute and 20 minutes past the hour
• one chime if the time lies between 20 minutes and 40 minutes past the hour
• two chimes if the time lies between 40 minutes and 60 minutes past the hour, between the two chimes, sleep 1 second.

Attachment:- Assignment Task.rar

Reference no: EM132832196

Questions Cloud

What amount of loss should be recognized for angel company : Angel Company purchased an investment property, What amount of gain or loss should be recognized for 2020 regarding the disposal of the property?
What amount was debited to investment in equity securities : The share rights are accounted for separately. The share is quoted at P250 right-on. What amount was debited to Investment in equity securities
Limited adoption of containerization in kenya : 2. Highlight four measures that the government can take to make road transport in our country to be more efficient
Write a shell script : Write a script called funny.sh that prints out the phrase ‘This is funny' if you include an argument when you invoke the script, i.e., typing ./funny.sh
What total cost should be recorded for the new shares : Each share had a market value of P130 and each right had a market value of P20 on the date of issue. What total cost should be recorded for the new shares
What is forecasted operating income next year : What is forecasted operating income next year if PM is forecasted to be 15%, ATO is forecasted to be 1.6, and NOA is currently $550?
Discuss in order the components of the revenue cycle : Discuss in order the components of the revenue cycle. Which processes for revenue cycle management and reporting do you perceive as most effective and why?
Massive effect on businesses in the service sector : Analyse hotels close to your school and by quoting case examples define the format most likely to survive post coronavirus.

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