#!/bin/ksh
# cleaner
# Process files with pattern $1

grep -l "$1" * > /tmp/cleaner$$
num_found=`wc -l < /tmp/cleaner$$`
echo Found $num_found files with pattern $1
for file in `cat /tmp/cleaner$$`
do
  echo "$file"
done
rm /tmp/cleaner$$ 
