I have a directory, let's call it htdocs/live/
. Many different directories are underneath this directory, each with a file commonFunctions.js
living in the js
directory.
For example, here is the structure of a few of the directories containing commonFunctions.js
:
htdocs/live/abc123/js/commonFunctions.js
htdocs/live/program1/js/commonFunctions.js
htdocs/live/program2/js/commonFunctions.js
htdocs/live/bunnies/js/commonFunctions.js
htdocs/live/emerald/js/commonFunctions.js
How can I write a command to list each of these files ordering them by the last time they were modified?