Cloudera interview question

Write a shell script to parse a file and find some words and sort it