1 Reply Latest reply on Jul 10, 2013 7:18 PM by Dude!

    To Pick the oldest file using shell script

    Nikunj G

      Hi All,


      I want to pick the oldest file among the below files in the shell program. I don't know the file name but i know the file extension.


      -rw-r--r-- 1 oracle    dba   0 Jul 10 13:39 1.sh

      -rw-r--r-- 1 oracle   dba    0 Jul 10 13:39 2.sh

      -rw-r--r-- 1 oracle   dba    0 Jul 10 13:39 3.sh

      -rwxr--r-- 1 oracle   dba   7123 Apr  7  2011 xxampp.sh

      -rw-r--r-- 1 oracle  dba    1 Jul 10 12:57 xxaampps.sh



      Here i want to create a shell program  to pick the xxampp.sh which is created earlier.


      Please help me to achieve this task.


      Thanks in advance.