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

  Create networks that will learn the circle

ITECH1100 Understanding the Digital Revolution - Artificial Intelligence - Identify the lines of Prolog that represents a sentence, and the three noun phrase

  Write and execute one join query

Attach a .txt file showing the SQL query program, and a Microsoft Word file with an authentication screen shot that shows the output of this join query.

  Simulate the recursive factorial function given in the class

In this programming assignment, you are asked to simulate the recursive factorial function given in the class. Your program is to be a nonrecursive version of the factorial function implemented using a stack.

  Create a form application

Create a form that has a text area that will hold Mission Title and Adjusted Total Box Office Profit data.

  Write a class to accepts no parameters and returns no value

Write class named ParkingMeter containing:A method named tick that accepts no parameters and returns no value. tick decreases value of timeLeft by 1, but only if value of timeLeft is greater than 0.

  Write a program to find the common songs in these lists

Write a program to find the common songs in these lists. Let user enter the list sizes n and m and the songs. While testing your program for submission, make sure that the lists are different but they do intersect in some songs.

  Designing navigation system for point-and-click system

Design a navigation system or menu allows Access to act like point-and-click system. Write down some of the kinds of navigation.

  Write a regular expression for the given problem

You need to prepare a regular expression of the problem - The set of strings over alphabet {a, b, c} containing at least one a and at least one b.

  Do you believe that html may have outlived its usefulness

HTML was the original Web page protocol, developed for hypertext documents on the emerging Web. Many different protocols and technologies have since been developed.

  Develop a domain-specific language within ruby

Develop a domain-specific language within Ruby, such as for manipulating files in a directory system, editing files, generating quizzes, describing graphical or geographical scenes, and adding and viewing entries in a calendar.

  The collection of internet-connected computers

The collection of Internet-connected computers that translate domain addresses into IP addresses

  Write program to allow user to enter marks of students

Write a program that allows user to key in marks of students. The number of students is determined by the user at the start of the program.

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