tail -n +1 *.expln | egrep '==>|Estimated Cost' for a in `ls *.expln`; do echo "$a"; cat "$a" | grep "Estimated Cost"; done