#!/bin/bash

while read line
do
    echo $line
done
cat - | cut -d',' -f1-3 | column -ts,