Create a shell script the count the number of files

Assignment Help Data Structure & Algorithms
Reference no: EM1380752

File "Ageing" Shell Script

A) Create a shell script that will calculate the number of files in your account hat were last modified five or more days ago and when you run the shell script, results should look something like this:

% ageing
there are 19 files 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: EM1380752

Questions Cloud

Create a sample human resource strategy : Create a sample human resource strategy that aligns with subsequent business strategy: "A satisfied customer is best business strategy of all."
What kind of strategy is sturbucks using to enter : What kind of strategy is Sturbucks using to enter this competitive market? Giive details on this strategy. Explain which will be involved in the strategy.
Explain how to design his new organization : explain how to design his new organization. This design will comprise management structure, pay system also allocation of work to individuals also groups.
How products range from small portable high-pressure washers : Products range from small portable high-pressure washers to large industrial installations for snow removal from vehicles stored.
Create a shell script the count the number of files : Create a shell script that will calculate the number of files in your account hat were last modified five or more days ago and when you run the shell script,
What role does corporate governance play in strategic plan : What is corporate governance? need help with this part - What role does corporate governance play in strategic planning? Why is it important?
Illustrate what are your career aspirations for next five yr : "Illustrate what are your career aspirations for next five years." Use one of four basic units of content analysis to analyze their responses. Illustrate your findings as frequencies for unit of analysis selected.
Management believes that they can increase the price : Management believes that they can increase the price per hour by 10 percent in this new situation and improve profits by 10 percent, but the sales department cautions that the price increase may decrease sales by 15 percent
Illustrate what types of initial screening should be made : For instance, do you have any thoughts regarding where organization may start its search for candidates. In your opinion, illustrate what types of initial screening should be made of those candidates.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Creating the flowchart for the decision structure

A telephone corporation service plan charges twenty-five cents for each call made. In addition, it charges five cents a minute for all calls made to a phone number that has a service plan with the corporation.

  Modify bellman ford algorithm to find negative weight cycle

Demonstrate how to modify the Bellman Ford algorithm to find and print a negative weight cycle in a weighted directed graph G if one exists.

  Ambiguity in proposed algorithm-in representation algorithm

Describe distinction between the ambiguity in proposed algorithm and ambiguity in representation of the algorithm.

  Analyzing the use of databases

Create a paper analyzing the use of databases in your company. Include what database applications are used. Conclude through proposing improvements.

  Testing item in array of member using sequential search

Look up each test item in array of member items, by using sequential search. What is the worst-case running time of it. (asymptotically, in terms of n and k)?

  Data structures and algorithm design

Data Structures and Algorithm Design

  Find maximum possible amount of money by optimal strategy

Removes it from row permanently, and receives value of coin. Find out the maximum possible amount of money we can definitely win if we move first.

  Write algorithm to reverse elemens in queue

Using basic queue and stack operationns, write algorithm to reverse elemens in the queue. Suppose that 'Stack' is class described in section with 'StackType' set to int and STACK_CAPACITY

  Explain benefits of isdn

Sometimes ISDNs are used in locations that do not support DSL or cable modem connections. Your selections may be analog modems or an ISDN connection in those remote locations.

  Creating a random file of the signs

Create a random file of the signs of all angles from zero degrees to ninety degrees. Make every entry accurate to three places. Write a program that will show the sign of any angle typed on the keyboard.

  Computing the total dollar sales

A corporation has a product line that includes five items that sell for $100, $75, $120, $150, and $35. There are four salespersons working for this corporation,

  Different network connections

Use your laptop at public store to check your email and discuss all the different network connections involved in this operation.

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