#!/bin/bash
## Deliver file $1 in sections of INCREMENT lines to whichever utility 
## you replace the "cat" below by.

INPUTFILE="$1"
INCREMENT=100	## in sections of 100 lines
MAX=$( wc -l "$INPUTFILE" | awk '{print $1}' )

i=1
while [[ $i -le $MAX ]]
do
	echo Working on section starting at line $i
	( tail +$i $INPUTFILE | head -$INCREMENT ) | 
		cat  ## replace by whatever utility you want
	i=$(( i + INCREMENT ))	
done
