#!/bin/sh for i in `cat` ; do j="a "`echo $i | grep '^[A-Za-z]*$'` if [ "$j" != "a " ]; then set $j echo $2 fi done