I have a directory called /home/mydir/testA file will be sent from some other team which lands in this directory. How to find what is the time the file came to this particular directory? ( I need both time in time stamp format and normal hh:mm:ss format too ) I have to move the files to directory which is here for more than 5 hours. How to fetch  those files?
Find the time of the file received in a particular directory
linux;shell script;scripting
You can use stat -c %w filename, it will provide the date of birth in human readable way, and -C will provide in unix timestamp. Time of birth is not supported on every filesystem; use stat -c %z, i.e. time of last change, in those cases. 