Skip to content

Commit

Permalink
get_accs_usage2.sh: Fix ordering of results (by total usage).
Browse files Browse the repository at this point in the history
  • Loading branch information
olifre committed Mar 24, 2022
1 parent d1a0d2e commit 34b3c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get_accs_usage2.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
./get_accs_usage2.py | \
egrep -v '^name' | \
sort -rn -k2 | \
sort -rn -k3 | \
awk -vFS=$'\t' 'BEGIN{OFS=","}{print $1, $2, $3/1000/1000/1000/1000, $4/1000/1000/1000/1000, $5/1000/1000/1000/1000}' | \
column -s, -t -N name,mail,size/TB,perm/TB,temp/TB

0 comments on commit 34b3c8a

Please sign in to comment.