Question: Write a BASH SCRIPT, NOT PEARL OR AWK OR ANYTHING ELSE. Write a bash script named buildList that generates lists by selecting the specified column

 Write a BASH SCRIPT, NOT PEARL OR AWK OR ANYTHING ELSE.

Write a bash script named buildList that generates lists by selecting the

Write a BASH SCRIPT, NOT PEARL OR AWK OR ANYTHING ELSE.

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 colnumber, 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 easie). For example: [userlS cat cs252.csv Last,First,username Aronnax,Miles,rassilon Britt,Barry,bbritt Lin,Dean,deanlin Miner, Andrew,asminer [userls cat cs229.csv Last,First,userid

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!