Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago