egrep obviates the for loop.