Design a unix shell script that searches for a text file

Assignment Help Computer Engineering
Reference no: EM1336463

Create a Unix shell script that searches for a text file 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: EM1336463

Questions Cloud

Explain organizational financial performance : Summarize the relationship between managerial international experience and organizational financial performance
How to use as its input the current directory : how to use as its input the current directory.
Combination of selection tools : Name three selection tools that you would consider using for a hiring program at a supermarket and Choose what you think is the best selection tool or combination of selection tools
Assume the network is a packet-switched datagram network : discuss sending a file of F bytes over a path of Q links. Each link transmits at R bps. The network is lightly loaded so that there are no queuing delays. Propagation delay on each link is Tp on average.
Design a unix shell script that searches for a text file : make a Unix shell script that searches for a text file 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.
Factors affecting effective incentive plan : Whether the plan should be based on group or individual employee performance and The level of risk employees will be willing to accept in their overall compensation package
Explain how has the internet changed the tactics : Explain How has the Internet changed the tactics and How has the Internet changed the tactics organizations use in their marketing mix
Write down the largest and the smallest numbers to screen : Write down a Java program that will search a text file of strings representing numbers of type int and will write the largest and the smallest numbers to the screen.
Explain about marketing : Explain about Marketing and Discuss the dimensions for segmenting markets and Provide a succinct overview of the key components of a marketing plan

Reviews

Write a Review

Computer Engineering Questions & Answers

  How to create two arrays of integers

create two arrays of integers, each holding ten elements of data. Create a third array of integers for a result array. Your main program will take the two arrays of integers and pass them to the function subtract().

  How company x is going to expand its information system

Develop a list of actions you might conceivably take if no agreement is reached.

  Write down four logic functions that are true

Implement the four functions using a ROM.Assume that X consists of 3 bits, x2 x1 x0

  Implementing the java application

Write down a Java application which enables a user to enter 10 numbers (double precision) into an array and then sorts and shows the numbers from lowest to highest.

  What is a backup strategy or active directory?

What is a backup strategy or Active Directory? The small business that you created new domain controllers for now wants you to develop a backup and recovery plan for Active Directory.

  How to modify the temperature conversion program

Add two buttons to temperature conversion program. Clicking one button converts Fahrenheit to Celsius, clicking the other converts Celsius to Fahrenheit. It will help the user to have a "clear" button that clears  text in both text fields.

  What some of the most common symptoms of malware

What are instance of harmful spyware application? What risk or threat do they pose to workstation domain.

  Why some companies may avoid beta releases

Cross (2007) discusses the benefits for a software company to release beta versions instead of final versions of products. What is Cross's reasoning? Do you agree with it? Explain why some companies may avoid beta releases from software companies.

  Define what situations are appropriate for hard disks

define what situations are appropriate for Tape. Explain why.define what situations are appropriate for hard disks. Explain why.

  What is response time

What is response time

  Define the facts they have learned simultaneously hold

An efficient algorithm is proposed to do this: either it produces proposed dates of birth and death for each of the n people so that all facts hold true, or it reports (correctly) that no such dates can exist. That is the facts collected by the sci..

  Create a short main() demonstration program

make two classes. The first holds sales transactions. Its private data members include date, amount of sale, and salesperson's ID number.

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