#!/bin/sh conv=$1 shift file $(find $@ ! \( -type d -name CVS -prune \) -type f) \ | awk -F: '$2 ~ /text/ { print $1 }' | xargs recode "$conv"