#!/bin/sh first=1 for i in $* ; do if [ $first -eq 1 ] ; then first=0 else echo -n , fi echo -n "'$i'" done echo