Question: Linux question) Given a list of filenames, write script called older.sh that returns the oldest file. That is, typing older list will return the name

Linux question) Given a list of filenames, write 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. Tip: find the oldest file within a list of (3 foo goo hoo) files given as parameters when running the script.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!