Print without the first elemenet: grep "type" * | awk '{for (i=2; i<NF; i++) printf $i " "; print $NF}' | grep "\"type\""