Description
Write programs/commands for the following questions. You can use any language you want. Youare also allowed to use linux commands.
- Print top 20 lines and last 20 lines of the file.
- Replace the keyword “question” in the file with the keyword “answer”.
- Print words within inverted commas. For example, you have a string: Help me I am in
“love”. I want a program to print love.
- Print the word just before “question mark”. For example, you have a string: Is somebody there? Iwant the program to print “there”.
- Write a program to list the frequency of all unique words in the file.
- Plot graphs for top 5 highly frequent words with their respective frequencies.
Please download the file from the following link:
https://drive.google.com/file/d/0Bw48133MfC5oRXluRXhMTjg0MUk/view?usp=sharing

