29 lines
718 B
Bash
Executable File
29 lines
718 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cd ../../collections/manual/values
|
|
|
|
value=$(cat tft_value.md)
|
|
|
|
CU=$(cat cu_musd_hour.md)
|
|
CUTFT=$(echo "$CU / $value" | bc -l)
|
|
printf "%.2f" $CUTFT > cu_mtft_hour.md
|
|
|
|
SU=$(cat su_musd_hour.md)
|
|
SUTFT=$(echo "$SU / $value" | bc -l)
|
|
printf "%.2f" $SUTFT > su_mtft_hour.md
|
|
|
|
NU=$(cat nu_musd_hour.md)
|
|
NUTFT=$(echo "$NU / $value" | bc -l)
|
|
printf "%.2f" $NUTFT > nu_mtft_hour.md
|
|
|
|
IP=$(cat ip_musd_hour.md)
|
|
IPTFT=$(echo "$IP / $value" | bc -l)
|
|
printf "%.2f" $IPTFT > ip_mtft_hour.md
|
|
|
|
NAME=$(cat name_musd_hour.md)
|
|
NAME=$(echo "$NAME / $value" | bc -l)
|
|
printf "%.2f" $NAME > name_mtft_hour.md
|
|
|
|
DNAME=$(cat dname_musd_hour.md)
|
|
DNAME=$(echo "$DNAME / $value" | bc -l)
|
|
printf "%.2f" $DNAME > dname_mtft_hour.md |