#! /usr/local/bin/ksh93 -p a= g= for i in $* do a="$a $g" g=$i done /usr/sbin/pw useradd $g $a