Script to print file name and its creation date

Hello ,

I am looking for a script to print file name and its last updated time.

FILE CREATION-TIME                 FILE-NAME
24/10/2017 12:34        TDR-IU-8-2017.10.24.07:40:00-2017.10.24.07:45:00

when we run l command it print the directory and the files with details like permission, date, size, filename out of which i want to gathered only date and filename.

Regards,

last_update=$(stat -c "%n %y" filename) ; echo "${last_update%.*}"
1 Like