#!/bin/sh for x in `grep "a name" $1|cut -f2 -d\"` do echo "$x | " done