Shell script that will count the number of files in account

Assignment Help Programming Languages
Reference no: EM13948386

File "Ageing" Shell Script

A) Write a shell script that will count the number of files in your account that were last modified 5 or more days ago. When you run the shell script, the results should look something like this:

% ageing
there are 19 filles modified 5 or more days ago.
%

B) Modify your script (or re-write it if you wish) to allows the user to choose what the script should use for the last modified day. Example:

% ageing 15
There are 4 modified files 15 or more days ago.

C) Modify the script to get it to back up to "X" number of days and list the files that were modified for each day. Example:

% ageing -3
Files modified 1 day ago
./a.txt
./b.txt

Files modified 2 days ago
./2days.txt
./dir1/test_file.txt
./dir2/test_file2.txt

Files modified 3 days ago
(none)

Reference no: EM13948386

Questions Cloud

Identify the main functions of the australian competition : Briefly explain the rationale or justification for using those sections to pass the ACL - Briefly outline the benefits to consumers and business of the ACL.
Identify the important attributes for your chosen product : Identify the important attributes for your chosen product and select two key variables for your perceptual map. Prepare a perceptual map for your chosen product/brand and using a minimum of five competitors, rank each product/brand on the two var..
Autonomous consumption spending : A rise in autonomous consumption spending or a rise in invest- ment or a rise in government spending by 50 leads to the same impact on equilibrium income and toidentical adjustment paths for Y(t).
Cobweb model on a spreadsheet : Set up the following cobweb model on a spreadsheet for t =0 to 10
Shell script that will count the number of files in account : Modify the script to get it to back up to "X" number of days and list the files that were modified for each day.
Events or eras in health care and their impact : It is essential to identify, examine, and understand the history and foundations of health care in the U.S. as this will be the foundation for understanding health care systems though this course and in practice. Students will need to show a thor..
Determining the phenomenon of luminescence : 1. (a) In your own words describe briefly the phenomenon of luminescence. (b) What is the distinction between fluores- cence and phosphorescence?
Calculate the unit cost and the cost of finished goods : Calculate the unit cost and the cost of finished goods inventory under absorption costing. Calculate the unit cost and the cost of finished goods inventory under variable costing.
Absorption mechanisms in nonmetallic materials : 1. Briefly explain what determines the characteristic color of (a) a metal and (b) a trans- parent nonmetal. 2. Briefly explain why some transparent materials appear colored while others are color- less. 3. Briefly describe the three absorption mecha..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a vhdl code for soda vending machine

Write a VHDL code that implements the above soda machine. You have to turn in the following: A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

  What mistakes did the designer make when designing it

What won't users be able to do with this file, given the way in which it's designed?

  Write program to read file having student'' test scores

Write a C++ program that reads a file named "grades.txt" consisting of students' test scores in the range 0-200 (all integer values). (The first number in the file specifies the number of grades it contains.

  Program of rainfall report

Write a PROGRAM that reads in from a ?le a starting month name, an ending month name,and then the monthly rainfall for each month during that period.

  Design and write program using functions to calculates area

Design and write a program, using functions, that calculates the area and perimeter of a rectangle whose dimensions (length and width) are provided by a user.

  Top-down modular approach and pseudocode to create program

Use top-down modular approach and pseudocode to create a appropriate program to solve it. Where suitable, use defensive programming techniques. Give both pseudocode and flow chart algorithms.

  Explain why is a flowchart helpful in developing and

q1. why is a flowchart useful in developing and documenting software? why is the interactive visual logic flowchart

  Write program to compute integer remainder

Write program segments which accomplish each of the following:  Compute the integer part of quotient when integer a is divided by integer b.

  Create a class which holds account number

Create a class named Loan which holds the account number, name of account holder, amount borrowed, term, and interest rate. Include methods to set values for each data field.

  Prolog program to reads employee-s number

Write a prolog program that reads an employee's number from the keyboard, number of hours worked and an hourly rate of pay.

  Explain different kind of product sold

Use two-dimensional array to solve following problem. Company has four salespeople(1 to 4) who sell five different products (1 to 5). Once day, each salesperson passes slip for each different kind of product sold.

  Design the program so that it automatically counts

Label all output, and design the program so that it automatically counts the respondents.

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