#!/bin/sh

mkdir rgb

FILES=$@
if [ "$FILES" = "" ] ; then
  FILES="*.1 *.2"
fi

for F in $FILES ; do
  echo $F
  mv $F rgb/
  ./rgb2cmyk < rgb/$F > $F
done

