diff options
author | tv <tv@also> | 2011-08-04 16:42:02 +0200 |
---|---|---|
committer | tv <tv@also> | 2011-08-04 16:42:02 +0200 |
commit | 6d7de833ada141e5582caa704b52dbb68dc4887d (patch) | |
tree | 7c2a7cdf140619a2aa3c8eb94c4b17e95705a6a5 /host/dist | |
parent | e7083704d7ddd0c861eedc9dae29e8ccf5b805cd (diff) |
host arch getsize: initial vomit
Diffstat (limited to 'host/dist')
-rwxr-xr-x | host/dist/arch/getsize | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/host/dist/arch/getsize b/host/dist/arch/getsize new file mode 100755 index 00000000..d099c9e2 --- /dev/null +++ b/host/dist/arch/getsize @@ -0,0 +1,17 @@ +#! /bin/sh +set -euf +sed -rn ' + /^Name/{ + s/^Name *: *(.*)$/\1/ + T + h + } + /^Installed Size/{ + s/^Installed Size *: *(.*)$/ \1/ + T + H + x + s/\n//g + p + } +' | awk '{print$2$3" "$1}' | sort -n |