How to process a CSV file in bash?
Hi
I have a simple 3 column CSV file, I wish to assign a variable to each column in my pipeline. I have seen many other examples use something like:
while IFS=',' read col1 col2 col3
do
print $col1
print $col2
print $col3
done
However these variables do not persist out of the while loop, is there a way of parsing a CSV and keeping the variables for the whole of the pipeline?
• 86 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Hello SaltedPork!
We believe that this post does not fit the main topic of this site.
not related to bioinformatics
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!