Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Aug 22, 2025
1 parent e1360c0 commit 5d80d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inventory/get-billing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5d80d89

Please sign in to comment.