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

  Find out another design pattern for web based development

There are other design patterns that could be directly applicable to PHP programming, or web programming in general.

  Benefit of ethical hacking

Describe what you consider is the main benefit of the ethical hacking be sure to involve what is the role of an ethical hacker.

  Give appropriate accessor methods to set and get the data

create an address book application to keep track of the names, addresses, phone numbers, and birthdays of family, friends, and colleagues. You may implement your own linked list library, but it is recommended that you make use of the linked list A..

  About snmp

What do you understand by the term SNMP? Explain the role which SNMP plays in managing the networks.

  Write a java application which finds the total

Write down a JAVA application that finds the total and average of odd numbers from 1 to 15. Your JAVA program must use a counted loop to accomplish this task.

  Design a visual c-sharp program for an ice cream shop

design a Visual C-Sharp program for an Ice Cream Shop. The program will store data about ice cream cones and customers.

  Relationship of tactical-strategic and operational plans

Explain what is meant by the relationship of tactical, strategic, and operational plans, and their individual planning horizons as applied to the telecommunications field.

  Create a java program that demonstrates a static recursive

Write down a Java program that demonstrates a static recursive method that accepts two integer arguments into the parameters x and y. The method should return the value of x times y.

  Assume that we compare the insertion sort method

assume that we compare the insertion sort method. while classification with merge requires 64n*lg(n) steps. For which values of n, does insertion sort method outclass the merge sort process.

  How to write a program to generate a table of factors

Write down a program to generate a table of factors used to compute monthly payments for the money borrowed.

  Application showing files name-size and last modifiaction

Make a file by utilizing any word-processing program or the text editor. Write down an application which shows the file's name, size, and time of the last modification.

  Give the pseudocode for the flowchart

make a flowchart and give the pseudocode for searching an array for a specified value.

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