#!/bin/bash
cat index-joined | ( i=0; while read line; do echo "$line" >> $(( $i / 80 )); i=$(( $i + 1)) ;done )

