Search Results

Search: Posts Made By: EDBGSK
3,899
Posted By EDBGSK
Simple Math question...
Hi All ,

I'm trying to do a simple math expression ...but unsuccessfull :-(

Anyone can help me?

days=23
amount=`expr ${days} / 30 \* -125`
echo $amount

but as result i got 0 when i...
2,890
Posted By EDBGSK
Thanks , i already found the problem ...using ...
Thanks , i already found the problem ...using

`echo "$days / 30 \* 100" | bc -l` solve my problem!!

rgds,
2,890
Posted By EDBGSK
Thank you for your answer!It's working fine!!! ...
Thank you for your answer!It's working fine!!!

I have another doubt , how i can do to the result of division , for example 10/20 not round to zero?In this case the result is 0.5 , but i got 0 as...
2,890
Posted By EDBGSK
Compare the first column and get the second column from file.
Hi All ,

I have an output value with two columns like this...

Days User
10 A
500 B
1 C

How i can compare the first column value and passing the user name as parameter?...
Showing results 1 to 4 of 4

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