Question: Part 1 : For this part, you will write a single line ( piped ) command to find the 1 0 most frequently used words
Part :
For this part, you will write a single line piped command to find the 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', anaof and 'and'. Do not use grep multiple times for this check f otion
Also, while comparingmatching the words ignore the difference in cases.
Use the file 'story.txt in the directory ~sxa You can execute the following command to copy to your current directory.
cp ~sxastorytxt
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
