Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a bash shell script to carry out the following task: Show transcribed image texte. Pretty-Printing a Data File: Some database and spreadsheet packages can

Write a bash shell script to carry out the following task:image text in transcribed

Show transcribed image texte. Pretty-Printing a Data File: Some database and spreadsheet packages can save-files with comma-separated values, (CSVs) as one way to export their data, so other applications can import them for further processing. Given a data file with comma-separated fields, of the form Column labels Full Name, Street Address, City State Zip, Phone Number Jones, Bill, 235 S. Williams St., Denver, CO, 80221, (303) 244-7989 Data line Data line Smith, Tom, 404 Polk Ave., Los Angeles, CA, 90003, (213) 879-5612 Write a shell script to reformat the data and print it out to "stdout" in labeled, evenly-spaced columns as the following example, note the lengths of the label strings in the first line and the maximum string length in each column

e. Pretty-Printing a Data File: Some database and spreadsheet packages can save-files with comma-separated values, (CSVs) as one way to export their data, so other applications can import them for further processing. Given a data file with comma-separated fields, of the form Column labels Full Name, Street Address, City State Zip, Phone Number Jones, Bill, 235 S. Williams St., Denver, CO, 80221, (303) 244-7989 Data line Data line Smith, Tom, 404 Polk Ave., Los Angeles, CA, 90003, (213) 879-5612 Write a shell script to reformat the data and print it out to "stdout" in labeled, evenly-spaced columns as the following example, note the lengths of the label strings in the first line and the maximum string length in each column: Full Name Street Address State Phone Number city Zi Bill Jones 235 S. Williams St. Denver 80221 (303 244-7989 CO Los Angeles CA Tom Smith 404 Polk Ave. 90003 (213 879-5612

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions

Question

Different formulas for mathematical core areas.

Answered: 1 week ago