Question: Part 1 : For this part, you will write a single line ( piped ) command to find the 1 0 most frequently used words

Part 1:
For this part, you will write a single line (piped) command to find the 10 most frequently used words in a given text file.
You may have to use xargs, grep, sort, tr, and several other commands to solve this problems. Note that this problem can be solved using a combination of multiple commands; but all these commands should be in a single line (of any length).
For example,
sort ypages > out
uniq out
is not a single line command. Whereas the following is a single line command.
sort ypages | uniq
You should write a single line command for this problem.
While counting the frequency you should ignore these words: 'the', 'an','a','of', and 'and'. Do not use grep multiple times for this (check -f otion).
Also, while comparing/matching the words ignore the difference in cases.
Use the file 'story.txt' in the directory ~sxa173731/3377. You can execute the following command to copy to your current directory.
'cp ~sxa173731/3377/story.txt .'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!