awk

The basic format of an awk command
awk '/search_pattern/ { action_to_take_on_matches; another_action; }' file_to_parse