podman/dependencies/analyses/nm-symbols-analysis.sh
Valentin Rothberg 294ddc4720 dependency/analyses: simplify scripts
Credits to bash wizard @edsantiago for the changes.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-07-16 14:16:16 +02:00

10 lines
186 B
Bash
Executable file

#!/usr/bin/bash
if test "$#" -ne 1; then
echo "invalid arguments: usage: $0 path/to/binary"
exit 1
fi
go tool nm -size "$1" \
| awk 'NF==4 && $3=="t" {printf "%s\t\t%s\n", $2, $4}'