Search Results

Search: Posts Made By: qcmao
5,171
Posted By hfreyer
Although you did not mention that something went...
Although you did not mention that something went wrong I suppose that
your script has problems with the eval statement, which expects a shell command
instead of a script filename. You may try...
1,915
Posted By jayan_jay
Yes ..
Yes ..
1,915
Posted By sulti
Above is true, when Your number is in this...
Above is true, when Your number is in this format:
0,1
It's not working when You have dot in number (like in bc standard):
0.1
1,915
Posted By yazu
ksh93, bash, zsh: if (( $2 < $1 && $1 < $3));...
ksh93, bash, zsh:
if (( $2 < $1 && $1 < $3)); then
echo Ok
else
echo False
done

===

Well, bash doesn't work with floating numbers. Then
if [[ ! $temp0 =~ ^- && $temp1 =~ ^- ]]; then ...
1,915
Posted By sulti
Try this: if [ `echo "$1 > $2" | bc -l` -eq 1...
Try this:
if [ `echo "$1 > $2" | bc -l` -eq 1 -a `echo "$1 < $3" | bc -l` -eq 1 ]; then
echo OK
else
echo False
fi
Showing results 1 to 5 of 5

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