Compare commits
No commits in common. "9ab116d057f6f64ca6398ff9ea1eb7fcbce9d262" and "771a943c55d110a54a2bdfff662a4b07b09b6a0d" have entirely different histories.
9ab116d057
...
771a943c55
9
pizza.sh
9
pizza.sh
|
@ -26,7 +26,7 @@ while getopts ":hf:" option; do
|
||||||
done
|
done
|
||||||
|
|
||||||
function panarea {
|
function panarea {
|
||||||
AREA=$(echo "3.1415926535*($DIAM/2)^2" | bc -l)
|
AREA=$(echo "3.1415926535*($DIAM/2)^2" | bc)
|
||||||
SIZE=$(echo $AREA*$FSI | bc)
|
SIZE=$(echo $AREA*$FSI | bc)
|
||||||
calcratio
|
calcratio
|
||||||
}
|
}
|
||||||
|
@ -39,13 +39,6 @@ function calcratio {
|
||||||
grep 'ratios' -A 8 pizza.txt | sed /\\[*.\\]/d | cut -f 1 | sed $LABEL'!d'
|
grep 'ratios' -A 8 pizza.txt | sed /\\[*.\\]/d | cut -f 1 | sed $LABEL'!d'
|
||||||
echo $RATIO*$SIZE | bc
|
echo $RATIO*$SIZE | bc
|
||||||
done
|
done
|
||||||
# cleanup
|
|
||||||
unset LABEL
|
|
||||||
unset RATIO
|
|
||||||
unset SIZE
|
|
||||||
unset FSI
|
|
||||||
unset AREA
|
|
||||||
unset DIAM
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
|
|
Loading…
Reference in New Issue