Write a script that will take an optional argument

Assignment Help Computer Engineering
Reference no: EM132298958

Question: The purpose of this assignment is for students to become comfortable with basic commands, documentation, file redirection - i.e. the bash shell), a Unix editor, the Unix file system using Unix filters (including Awk) to solve text processing problems.

Your task is to recurse through a subtree of the filesystem and put a file called dir.xml in each directory. You will pull data from 2 sources: the directory itself, and a file that may appear in each directory called README .

To Do

You will write a script (or, scripts) that will take an optional argument, the directory to process. If not argument is supplied, use the current directory.

In each subdirectory (including the top-level directory on which the script was called) you will place a file called dir.xml . If it already exists, simply overwrite it. Do not include it as one of the files listed.

The root element will be direntry. It may contain up to 3 child nodes: index, required, and other. These three elements will contain text elements, either of type file or dir.

Index and required data will be harvested from README (use AWK to parse this file). Other files will be found by taking a listing of the directory, looking for files or directories that weren't listed in README.

What to hand in

• a1-top - your top-level script, the entry point, the script we will call with the directory to be processed

• All the rest of your source code

Reference no: EM132298958

Questions Cloud

Health insurance companies : Should health insurance companies be able to do the same to policyholders through wearable tech? Defend your answer.
How the auditing can support data quality : SBM4304 - IS Security and Risk Management - Asia Pacific International College - Discuss the ways the organizations in the selected sector can protect
Explain the data breach in detail : Data breach. explain about it in 500-600 words.in API format and also need ppt on the data breach 10 slides relating to the above data breach word document.
What is fire service culture : What is fire service culture and how can it be either a risk or benefit to firefighters and those involved in leadership roles?
Write a script that will take an optional argument : You will write a script (or, scripts) that will take an optional argument, the directory to process. If not argument is supplied, use the current directory.
Training promote organizational effectiveness : Discuss how team building and inter group training promote organizational effectiveness
Reporting illegal or unethical actions : If not, what is the motivation for not reporting illegal or unethical actions, or what are other explanatory causes?
Role of division of labor and hierarchy ay honest tea : 1. Describe the role of division of labor and hierarchy ay Honest Tea.
Determine what does that ratio look like : CSC 540 We are interested in tracking the ratio of half pills to all the pills left in the jar. When you start with a new jar of N whole pills.

Reviews

Write a Review

Computer Engineering Questions & Answers

  How many pages are needed to store the entire job

If a program has 850 bytes that will be loaded into frames of 128 bytes each, and the instruction to be used is at byte 226.

  Accept a one-dimensional array of double and returns

Using Java: Write a method, averageArray, that accepts a one-dimensional array of double and returns the average of the numbers in the array.

  Why is it significant to define the primary keys of a file

your supervisor has approved your normalized versions of the database. your team members were given copies. one of the

  Explain digital resources by relying on search engine result

Explain digital resources by relying on search engine results and distinguishing relevant digital materials from irrelevant materials.

  Discuss how will you measure my performance

You are about to offer the job to a candidate, but the candidate says - How will you measure my performance

  Make a configuration that allows members of the group

Create a configuration that allows members of the group sales read files in the directory /data/account.

  Calculate the speed for a trip james took in miles per hour

Write a C++ program that calculates the speed for a trip James took in miles per hour, then later converts it into kilometers per hour.

  Describe the two aspects to implementing six-sigma concept

Describe the two aspects to implementing the six-sigma concept. Describe the ten guidelines for selecting forecasting software.

  Write down a program which compute the average of a group

write a program that calculate the average of a group of test scores where the lowest score is dropped. it should use

  Find the probability that at any given time

When a circuit switching is used, how many users can be supported? For the remainder of this problem suppose packet switching is used.

  What are the reportingoptions for fulfillment process

Assignment: Integrated Enterprise Systems- What are the reportingoptions for fulfillment process. Give brief description for each option.

  Determine the noise margins of an ecl gate

What is the average power dissipation of a standard TTL gate that provides high and low collector current values of 10 mA and 2.5 mA, respectively?

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