mirror of
https://github.com/containers/podman.git
synced 2025-09-12 18:09:45 +08:00

Believe it or not: `sort -ruh` is loosing data while `sort -u | sort -rh` does not. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
13 lines
298 B
Bash
Executable File
13 lines
298 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
if [ -z "$WORK" ]
|
|
then
|
|
echo "WORK environment variable must be set"
|
|
exit 1
|
|
fi
|
|
|
|
grep --no-filename packagefile $WORK/**/importcfg \
|
|
| awk '{ split($2, data, "="); printf "%s ", data[1]; system("du -sh " data[2]) }' \
|
|
| awk '{ printf "%s %s\n", $2, $1 }' \
|
|
| sort -u | sort -rh
|