1. Engineering
  2. Computer Science
  3. given a list of filenames write a script called oldersh...

Question: given a list of filenames write a script called oldersh...

Question details

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.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution