Færdiggjort

linux shell script

**SCRIPT SHOULD BE COMPLETED BY midnight USA EASTERN TIME FEBRUARY 27 2006**

Write a shell script that implements a report writer. The script file should be called "report" and should be invocable as

bash report

from the command line. The script will assume 3 input files -- called "products", "sales", "associates" -- as described below:

In your script you may use common Linux commands: make sure that your script runs fine on any Linux machine.

File Specifications (click on the file name to get an example of the file):

**FILES PROVIDED (ATTACHED FILE)

**

products: has the following fields, the field separator is ":"

* product id: an integer number

* description: alphanumeric text

* price: floating point number, with 2 significant digits

sales: has the following fields, the field separator is ","

* product id: an integer number

* quantity: an integer number

* date: in the form of dd:mm:yyyy

* associate id: an integer number

associates: has the following fields, the field separator is "/"

* associate id: an integer number

* name: alphanumeric text

* salary: an integer number

* position: alphanumeric text

The script should compute the _sale amounts per sales_ in the month of September 2005, and print them in a list ranked according to the sales amount. Your script should invoke Linux commands on the above files to produce a report on standard output. Here is an example of the script invocation:

## Deliverables

$ bash report

COMPUTER INC

Sales Associates Ranking

September 2005

Name Position Sale Amount

=================================================

Fast Buck Stock Boy 199.00

Susan Smith Manager 120.00

Susan Smith Manager 120.00

John Doe Clerk 8.91

John Doe Clerk 8.91

Fast Buck Stock Boy 1.98

Fast Buck Stock Boy 1.98

Fast Buck Stock Boy 1.98

Fast Buck Stock Boy 1.98

Aimee Woods Secretary 0.99

Aimee Woods Secretary 0.99

$

## Platform

LINUX

Evner: Lidt af Hvert, Ingeniørarbejde, Linux, MySQL, PHP, Software Arkitektur, Software Testning

Se mere: secretary 2, sales associates, john price, file clerk, computer associates, associate product manager, shell bash, in linux shell script, example shell script, bash file, sale associate, linux price list, get linux, susan, shell script, linux writer, linux bash script, bash script, aimee, write stock report

Om arbejdsgiveren:
( 5 bedømmelser ) United States

Projekt ID: #3314308

Tildelt til:

ignexus

See private message.

$42.5 USD på 1 dag
(113 bedømmelser)
6.4

2 freelancere byder i gennemsnit $43 på dette job

sarfaraz99

See private message.

$42.5 USD på 1 dag
(4 bedømmelser)
2.2