I have IDs in the first column of data.csv with headers.
I want to skip the header and store column 1 values in the variable ids
as 102 103 104 ...
.
Pseudocode in the line ids.append($col1)
where I want to append the current row value to the end of the line with a space
# https://mcmap.net/q/41008/-how-to-parse-a-csv-file-in-bash
while IFS=, read col1
do
ids.append($col1) # Pseudocode
done < data.csv
data.csv
102
103
104
Expected output
ids=( 102 103 104 )
OS: Debian 8.5
Bash: 4.3.30(1)