I have a dir in
My main DIR is /tmp/folder
Inside /tmp/folder
there are is a X number of folders only (not files). For example
/tmp/folder/1
/tmp/folder/2
/tmp/folder/3
/tmp/folder/4
/tmp/folder/5
Inside these folders the are many files of same extension. I want from every one of these folder, to get the last & first created files (modifitied time).
The output i prefer to be like this
/tmp/folder/1,OLD_FILE,NEW_FILE
/tmp/folder/2,OLD_FILE,NEW_FILE
/tmp/folder/3,OLD_FILE,NEW_FILE
/tmp/folder/4,OLD_FILE,NEW_FILE
/tmp/folder/5,OLD_FILE,NEW_FILE
I will parse this output using a script, so you can do any output you want, but please do it in a friendly way so i can parse it easily.
The bash command should be only 1