I am using Fedora 10
. If I write java -version
in terminal, it gives me java version. I want to write a shell script file to check whether the java version is greater than 1.5.
The main problem is that I donot know how to assign the value of java -version
command as to a variable of shell script
.
How to create shell script file for that ?
I need to create a simple fixed width text file in KornShell (ksh). My current attempt using printf to pad the string isn t working out very well. What s the shortest, cleanest way to create a fixed ...