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