aboutsummaryrefslogblamecommitdiffstats
path: root/info/behead
blob: 9bd4cedd48ed7e7438fe04b5643b405eb3272ef7 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                     




                                 
                                      
 
                          

                                               
#!/usr/bin/env sh
# See LICENSE file for copyright and license details.

beheading="$1"

data="$(cat)"
lines="$(echo "${data}" | wc -l)"
lines=$(expr ${lines} - ${beheading} )

if test $lines -gt 0; then
    echo "$(echo "${data}" | tail -n ${lines})"
fi