From 5d80d89766e13e364640a320f9246f36e6366b6e Mon Sep 17 00:00:00 2001 From: badra001 Date: Fri, 22 Aug 2025 11:25:40 -0400 Subject: [PATCH] fix --- inventory/get-billing.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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