Creating a unix shell script

Assignment Help Data Structure & Algorithms
Reference no: EM1380536

Question: Design a Unix shell script that searches for a text document with most occurrences of a given keyword. For instance, if I would like to search for a script with most usages of if statement, I would execute:

find_most_relevant.sh /home/student/myscripts if

The script find_most_relevant.sh should take two arguments. The first one is the directory where text files are located. The second argument is a keyword. The output of the script should either state:

No file with word <keyword> found in the directory <directory-name>

Or

file <filename>: found X occurrences of word <keyword>

(for the file with most occurrences of keyword only)

 

Reference no: EM1380536

Questions Cloud

How does goal setting disturb the performance : How does goal setting disturb the performance of the player on the Colts team? How do you ponder the Colts players would rate their job satisfaction? Why is this significant to the performance of the team as a whole?
Illustrate what would you recommend that they do. : WLAN worked well for one semester, but now more students have laptops with Wi-Fi built in also performance has deteriorated significantly. Illustrate what would you recommend that they do. Be sure to support your recommendations.
What is your dint of bernstein''s perception on raising : David Bernstein wants help financing his Lodi, New Jersey based Access Direct Inc., a six-year-old $3.5 million company. We're set to get to the next level
Explain why you believe author demonstrates good critical : Explain why you believe author demonstrates good critical thinking also whether article meets criteria as explained in Cornell University site.
Creating a unix shell script : Design a Unix shell script that searches for a text document with most occurrences of a given keyword. For instance, if I would like to search for a script with most usages of if statement,
Detailing the antitrust claims faced by the microsoft : Prepare a two to three page paper subsequent the APA guidelines detailing the antitrust claims faced by the Microsoft Corporation as thorough in the above websites
Illustrate what must carter prove to establish a rebuttable : Carter brings suit against Harper also Jennings alleging disparate treatment discrimination. Illustrate what must Carter prove to establish a rebuttable presumption of disparate treatment. If Carter establishes rebuttable presumption, does Harper ..
Is organization more appropriately illustrated as centralize : Is organization more appropriately illustrated as centralized or decentralized also Explain why.
Leadership via vision is essential for success : Leadership via vision is essential for success. Deliberate in detail research the topic the qualities that a leader should exhibit in order to be considered visionary and further

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd