Search Results

Search: Posts Made By: Meacham12
7,175
Posted By Akshay Hegde
I didn't see calculation part -v is missing ...
I didn't see calculation part -v is missing
e=$( awk -v var1=$a -v var2=$b -v var3=$c -v var4=$d 'BEGIN{print var1 * var2 / var3 + var4}' )
15,010
Posted By Don Cragun
It looks like the commands you're using to set A...
It looks like the commands you're using to set A and B are adding trailing carriage returns.

You can get rid of them (and any other non-numeric characters) with:
A=$(printf "%s" "$A"|tr -dc...
Showing results 1 to 2 of 2

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