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

  Asssume that x consists of 3 bits

imagine that x consists of 3 bits, x2 x1 x0 and Y consists of 3 bits y2 y1 y0. Write logic functions that are true if and only.

  Why would a firm choose one of these approaches

I am having difficulty with the following questions: Differentiate between a two-tier client/server system and a three-tier client/server system. Why would a firm select one of these approaches over the other when implementing a client/server syst..

  What are the advantages of the osi reference model

Using the layers of the OSI model as a reference, explain and sketch how repeaters, hubs, bridges, switches, routers, and gateways function in forwarding packets from one host to another through each device respectively.

  Tracking down people to obtain people

A city government wants to track down the people who run the small businesses and do not pay the city’s $125 business-license fee.

  Various counter controlled repetitive control structures

Write down the example that demonstrates different techniques of passing arguments: by value, by reference, and as pointers. Discuss the three methods.

  File containing a table of student grades

A particular professor has a file containing a table of student grades, where the first line of the file contains the number of students and the number of scores in the table.

  Program that uses class to create many fields

write a program that uses class to create many fields.

  Pros of the just-in-time inventory management system

What does just-in-time inventory management have to do with Carle Heart Center in Urbana, Illinois? The Carle Heart Center is one of the most sophisticated cardiac-care facilities in the Midwest

  How is the logical-to-physical address

How is logical-to-physical address mapping accomplished in this system? (For the indexed allocation, assume that a file is always less than 512 blocks long.)

  Describe the ip address

a MAC address and an IP address the same thing.

  Simulating the turing machine

Describe how to simulate the Turing machine along with singly infinite tape on the Turing machine with the doubly infinite tape. (Be sure to handle the can't move left" special case.) Describe how to simulate the Turing machine with the doubly inf..

  Make a plan to deploy several visual basic.net

Your supervisor has asked you to develop a plan to deploy several Visual Basic.NET applications to users in your company. Discuss the important considerations in this effort and give a summary of the technical approach you would use to deploy thes..

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