#!/bin/sh
# This shell script will strip an 64x64 icon down to 32x32 to be used
# as a filling pattern in Touchup
for patterns in ` ls pattern[0-9].icon; ls pattern[0-9][0-9].icon; ls brush[0-9].icon `
do
echo "Stripping $patterns..."
awk '
BEGIN { FS = "," }
NR == 1,NR == 2 { print }
NR < 18 && NR > 2 { printf "%s,%s,%s,%s,\n", $1, $2, $5, $6 }
NR == 18 { printf "%s,%s,%s,%s\n", $1, $2, $5, $6 }
' $patterns > ${patterns}.pat
done
