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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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