diff --git a/inventory/get-billing.sh b/inventory/get-billing.sh index 738bf4d..20b8cd4 100755 --- a/inventory/get-billing.sh +++ b/inventory/get-billing.sh @@ -34,7 +34,7 @@ grep ^BLEND setup/cost-usage.${lastmonth}_${nextmonth}.txt |\ jq -c '.ResultsByTime[] | .Groups[] | [.Keys[0],.Metrics.UnblendedCost.Amount,.Metrics.BlendedCost.Amount,.Metrics.UsageQuantity.Amount] | @csv' \ setup/cost-usage.${lastmonth}_${nextmonth}.json |\ - sed -e 's/\\"//g' -e 's/"//g'|sort -t, -k 2 -nr \ + sed -e 's/\\"//g' -e 's/"//g'|sort -t, -k 2,2 -nr \ > setup/cost-usage.${lastmonth}_${nextmonth}.csv exit 0