#!/bin/sh # EOLtoCSV.sh # Chieh Cheng # 2007-10-15 # GNU General Public License (GPL) Version 2, June 1991 first=1 while read line do if [ ${first} -ne 1 ] then printf "," fi printf "${line}" first=0 done