#!/bin/sh -e
#
# body - apply expression to all but the first line
# use multiple times in case the header spans more than one line
#
# usage:
#   seq 10 | header -a 'values' | body sort -nr
#   seq 10 | header -a 'multi\nline\nheader' | body body body sort -nr
#   printf "first_name\njim\nbob\nmary\n" | body ruby -nle 'puts $_.capitalize'
#
# ---
# source: https://github.com/jeroenjanssens/dsutils/blob/master/body

IFS= read -r header
printf '%s\n' "${header}"
"$@"
