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
Get step-by-step solutions from verified subject matter experts
