#! /bin/sh

mkdir output
cat $1 |
while read recd
do
  dir=`echo $recd | cut -d"," -f2`
  mkdir output/$dir 
done