#!/bin/sh

# print stdin, with an extra whiteline after each three lines
# This file is in the public domain
# Author: Joost van Baal, 2010

n=-1
while read line
do
    n=$(( n + 1 ))
    if test $n -eq 3
    then
        echo
        n=0
    fi 
    echo $line
done