Write an awk program to print a formatted report of the


Problem

1. A shell script uses the LOGNAME variable, which is not set on your system. Use the string handling features of awk to set LOGNAME from the output of the id command. This assignment will be made at the shell prompt, but its value must be visible in the script.

2. A stamp dealer maintains a price list that displays the country, the Scott catalog number, year of issue, description, and price:

Kenya 288-92 1984 Heron Plover Thrush Gonolek Apalis $6.60

Surinam 643-54 1983 Butterflies $7.50

Seychelles 831-34 2002 WWF Frogs set of 4 $1.40

Togo 1722-25 1996 Cheetah, Zebra, Antelope $5.70

Write an awk program to print a formatted report of the data as well as the total price. Note that the description contains a variable number of words.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write an awk program to print a formatted report of the
Reference No:- TGS02671753

Expected delivery within 24 Hours