Description
Write programs/commands for the following questions. You can use any language you want. You are also allowed to use linux commands.
1. Print top 20 lines and last 20 lines of the file.
2. Replace the keyword “question” in the file with the keyword “answer”.
3. Print words within inverted commas. For example, you have a string: Help me I am in
“love”. I want a program to print love.
4. Print the word just before “question mark”. For example, you have a string: Is somebody there? I want the program to print “there”.
5. Write a program to list the frequency of all unique words in the file.
6. 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