I am trying to find a solution similar to the one used below to find the Top N oldest files (modification time) on my AIX system starting from a given directory and digging though all sub-directories as well under it . Unfortunately printf is not supported on AIX ( my version being 7.1) find command. Is there an alternative way to accomplish the same task on AIX?
$ find /home/sk/ostechnix/ -type f -printf '%T+ %p\n' | sort | head -n 5
Thank You @MadeInGermany .This is a BRILLIANT Solution using the power of Perl. I am not familiar with the language but this One-liner works like magic.