Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash -eu
appimage=$1
shift
# credit to https://www.baeldung.com/linux/values-into-variable-from-pipe for the "read < <()" technique
read start num size < <(
readelf -h "$appimage" | sed -e 's/^ *//' | awk -F: '
{h[$1]=$2}
END {print h["Start of section headers"],