[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Calculation
From: |
Silvio Siefke |
Subject: |
Calculation |
Date: |
Sun, 20 Jun 2021 10:57:16 +0200 |
Hello,
I have question with calculation. I have a script for calculate projects
and at I not find the soulution to calulate the stuff in one line.
Yet I use:
round_sand=$(concalc "$i"*0.04*1.8 | awk '{print
($0-int($0)<0.499)?int($0):int($0)+1}')
$i is the array with meters. With this command I count the sand I need.
For example 10 tons.Now I calculate the price for sand.
sand=$(concalc "$round_sand"*8)
My question is, is there a way to make this two variables in one?
I try with xargs but this will not work.
Would be great someone had advice.
Silvio
pgp4Eyu0ZRRRe.pgp
Description: PGP signature
- Calculation,
Silvio Siefke <=