I am learning to script in Bash.
I have a CSV file with 5 columns and 22 rows. I am interested in taking the data from the second column and put it into an array. >
Remove the IFS="," assignment thereby letting the default IFS value of space, tab, newline apply
IFS=","
#!/bin/bash eCollection=( $(cut -d ',' -f2 MyAssignment.csv ) ) printf "%s\n" "${eCollection[0]}"