kaisalhassani
Programmer
Hi
I have a Unix directory which contains directories one or two or all (java6, java7 and java8).
I would like to know which is the latest java directory.
I can write a Unix script but I would like to know if there is a simplest way to do it in a Unix script.
If the directory contains Java6 only the answer is java6
Or
If the directory contains java6 and java7 the answer is java7
Or
If the directory contains java6, java7 and java8 the answer is java8
Or
If the directory contains java7 and java8 the answer is java8
Or
If the directory contains java8 only the answer is java8
Or
If the directory contains Java7 only the answer is java7
Thank you for your help.
I have a Unix directory which contains directories one or two or all (java6, java7 and java8).
I would like to know which is the latest java directory.
I can write a Unix script but I would like to know if there is a simplest way to do it in a Unix script.
If the directory contains Java6 only the answer is java6
Or
If the directory contains java6 and java7 the answer is java7
Or
If the directory contains java6, java7 and java8 the answer is java8
Or
If the directory contains java7 and java8 the answer is java8
Or
If the directory contains java8 only the answer is java8
Or
If the directory contains Java7 only the answer is java7
Thank you for your help.