#!/bin/bash
echo $1 > /tmp/test-cr.txt

IFS="|"
# Si y a pas d'argument
if [ $# -lt 1 ]
then
        echo "Usage: `basename $0` <file(s)>"
fi

mkdir $1/reduit
cp $1/*.[jJ][pP][gG] $1/reduit/
cp $1/*.[jJ][pP][eE][gG] $1/reduit/

reduire1024.sh $1/reduit/*
