The `head` command exits once it has output which can result in a SIGPIPE error if the command piping its output to head hasn't yet finished. Use `awk 'FNR <= 1'` instead, which waits on the input pipe to close before it exits. See here for more info: https://unix.stackexchange.com/a/256047 Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>