Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a bash script named buildList that generates lists by selecting the specified column of a spreadsheet stored in CSV format. The script should be

image text in transcribed

Write a bash script named buildList that generates lists by selecting the specified column of a spreadsheet stored in CSV format. The script should be invoked as BuildList .. where "column" is the desired column number, and any remaining arguments are input files. The output should be a single line for each input file, consisting of the filename with directory and extension .csv removed, and a comma-separated list built from the specified column of the spreadsheet. The first line of the spreadsheet is assumed to be column headers, and should be ignored. The script may invoke sed and awk if needed (in fact this is encouraged, because it will make your solution easier). For example: user]$ cat cs252.csv Last,First,username Aronnax,Miles,rassilon Britt,Barry,bbritt Lin,Dean,deanlin Miner,Andrew, asminer Cuser]$ cat cs229.csv Last,First,userid Huang,Xiaoqiu,xqhuang Jia,Yan Bin,jia Lathrop, Jim,jil Miner,Andrew,asminer Reiners,Dirk,dreiners Sheaffer, Jeremy, sheaffer Stolee,Derreck,dstolee Cuser]$ BuildList 3 cs252.csv ./././cs229.csv cs252: rassilon, bbritt, deanlin, asminer

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_2

Step: 3

blur-text-image_3

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

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago