Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

what command should i use to do this For this assignment, you will write two (complex) commands. In a given text file, you need find

what command should i use to do this
image text in transcribed
For this assignment, you will write two (complex) commands. In a given text file, you need find the 10 most frequently used words and 10 least frequently used words. Once you write a command to find 10 most frequently used words, you can easily tweak the command to find the 10 least frequently used words. You may have to use xargs, grep, sort, and several other commands to solve these problems. Note that each problem can be solved using 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 two single line commands for the two problems. While counting the frequency you should ignore these words: 'the', 'an', 'a', 'of', and 'and'. Do not use grep multiple times for this. Also, while comparing/matching the words ignore the difference in cases. Use the file 'story.txt' in shared box folder as input. You can either download this to cs1/cs2, or use copy and paste. Login to c51/cs2/cs3. Execute the following operations and submit the screenshot of the output on elearning. 1. Execute whoami 2. Execute the command to find 10 most frequently used words 3. Execute the command to find 10 least frequently used words

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

Step: 3

blur-text-image

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

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago