Search Results

Search: Posts Made By: emjs
6,570
Posted By emjs
I've tried ksh and sh below. Ewan ...
I've tried ksh and sh below.
Ewan


#!/bin/ksh
uname -a

max=6.3
val=3.2
#if [ $max -gt $val ]
if [ `echo "$max < $val" |bc` -eq 1 ]
then
echo MAX $max VAL $val
fi

output:...
6,570
Posted By emjs
And this is what I get: ...
And this is what I get:
[ewan@sbc-san-01]/export/home/ewan> cat ./xx.ksh
#!/bin/sh
uname -a

max=6.3
val=3.2
#if [ $max -gt $val ]
if [ $(echo "$max < $val" |bc) -eq 1 ]
then
echo MAX...
6,570
Posted By emjs
if test for higher value between 2 decimal numbers
Hi
I would like to test for a max number value. It may be a decimal so I know I have to pipe into bc.
I just cannot get the syntax for this to work. I cannot get passed an error with the bracket -...
Forum: Solaris 10-28-2009
3,500
Posted By emjs
Can I restore from a flash archive without re-entering the basic sys info?
Hi
I would like to be able to take adhoc backups of my
systems using flash archive - flarcreate - and then
restore from them to the same system without having
to enter the basic configuration...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 09:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy