#! /bin/bashn=`head data|wc -l`a=$(echo "$n*0.8"|bc)int_a=`printf "%0.0f" $a`echo $int_ahead -n$int_a data