summaryrefslogtreecommitdiffstats
path: root/punani/host/dist/arch/getsize
blob: a2ef8f95a24db4fd651dec4be2512e2f0d5619a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh
set -euf
sed -n '
  /^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