Hi everyone,
I have a folder with many subfolders, each subfolder contains an image beginning with the letter R and finishing with the extension rvg, the full name is something like Rx.rvg where x is a variable starting from 1.
I want to get the creation date of each rvg file with the lowest x, until now I have been using this command :
but unfortunately it doesn't work if the number is different than one which might be the lowest x but not all the time, please help, thank you in advance.
PS: If possible it would be better to send the output to a text file.
I have a folder with many subfolders, each subfolder contains an image beginning with the letter R and finishing with the extension rvg, the full name is something like Rx.rvg where x is a variable starting from 1.
I want to get the creation date of each rvg file with the lowest x, until now I have been using this command :
find . -name "R1.rvg" -exec stat -f "%Sm %N" -t %Y%m%d%H%M%S {} \;
but unfortunately it doesn't work if the number is different than one which might be the lowest x but not all the time, please help, thank you in advance.
PS: If possible it would be better to send the output to a text file.